|
From: Bruce S. <bw...@ar...> - 2004-03-04 15:17:19
|
This is the weirdest problem I've seen in a long time. > Log Message: > Fixed problem of /floppy not umount'ing when new config copied to media. > > > Index: linuxrc > mount -n -t auto $CFG_SRC /floppy >/dev/null 2>&1 || continue > cp -i /cdrom/config/etc.tar.bz2 /floppy/ || continue > + umount /cdrom > sync > DL_CONFIG_SOURCE=$CFG_SRC > continue 2 Without the above umount of /cdrom , the following umount /floppy would fail every time. (the above code only gets run when a new config is copied to a blank media) It took me a half day of trial & error to get this bug fixed!!! > > # unmount config media > -umount /floppy &> /dev/null > +umount /floppy BTW, /dev/null removed so we can see if error if it occurs again. - BS |