|
From: Bruce S. <bw...@ar...> - 2004-03-04 15:35:21
|
> >> 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!!! > > Could it be a problem with busybox? I guess. Nothing else makes any sense. > This means the system will now search 2 times for the CD-ROM. But since > this is only the case during the initial setup of the box, I don't see a > problem there. That was my thinking. Plus it beats having the floppy mounted after bootup. :-) > >> # unmount config media > >> -umount /floppy &> /dev/null > >> +umount /floppy > > > > BTW, /dev/null removed so we can see if error if it occurs again. > > OK Not to mention it wasn't working in the first place. ;-) Which is how I noticed the problem to start with. "2>" would have worked better. - BS |