X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-main.sh;h=512c624904ad88f78832571c0444fdca2286bbac;hb=f2dcec3f21086a557db86ae928295474be79d35b;hp=83f087f225b19514f83c0937b955e8e8a20f5710;hpb=3da00deab98dc5999f4583d05d164e2549efa6b2;p=live-boot-grml.git diff --git a/components/9990-main.sh b/components/9990-main.sh index 83f087f..512c624 100755 --- a/components/9990-main.sh +++ b/components/9990-main.sh @@ -148,15 +148,6 @@ Live () log_end_msg - # unionfs-fuse needs /dev to be bind-mounted for the duration of - # live-bottom; udev's init script will take care of things after that - case "${UNIONTYPE}" in - unionfs-fuse) - mount -n -o bind /dev "${rootmnt}/dev" - ;; - esac - - # aufs2 in kernel versions around 2.6.33 has a regression: # directories can't be accessed when read for the first the time, # causing a failure for example when accessing /var/lib/fai @@ -178,10 +169,16 @@ Live () fi fi - if [ -f /etc/resolv.conf ] && [ ! -s ${rootmnt}/etc/resolv.conf ] + if [ -L /root/etc/resolv.conf ] ; then + # assume we have resolvconf + DNSFILE="${rootmnt}/etc/resolvconf/resolv.conf.d/base" + else + DNSFILE="${rootmnt}/etc/resolv.conf" + fi + if [ -f /etc/resolv.conf ] && [ ! -s ${DNSFILE} ] then - log_begin_msg "Copying /etc/resolv.conf to ${rootmnt}/etc/resolv.conf" - cp -v /etc/resolv.conf ${rootmnt}/etc/resolv.conf + log_begin_msg "Copying /etc/resolv.conf to ${DNSFILE}" + cp -v /etc/resolv.conf ${DNSFILE} log_end_msg fi @@ -195,12 +192,6 @@ Live () Swap - case "${UNIONFS}" in - unionfs-fuse) - umount "${rootmnt}/dev" - ;; - esac - exec 1>&6 6>&- exec 2>&7 7>&- kill ${tailpid}