localnet script

Sam Halliday samuel at ma.hw.ac.uk
Wed Oct 16 13:03:55 PDT 2002

hi there...

i noticed that my machine would not correctly unmount the root
filesystem on occasion as it was busy... i tracked down the error, its
if i ever use the loopback device. the actual /dev/loopX remains alive
even if the FS itself is unmounted and ifconfig lo down is not enought.
here is an edit to the script which makes sure that the device is
properly cleared before proceeding... i use devfs but i have also
commented out the line you would substitute for non-devfs users... (tut

                # for devfs
                for A in /dev/loop/* ;
                # for normal /dev
                #for A in /dev/loop* ;
                 /sbin/losetup -d $A 2>/dev/null

these changes go in the stop) section of the localnet script, before the
loadproc `ifconfig lo down` command

'Charity ain't giving people what you wants to give, it's giving people
what they need to get.'
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list