From: Heiko Z. <smi...@us...> - 2005-04-29 00:15:53
|
Update of /cvsroot/devil-linux/build/config/etc/initrd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26899 Modified Files: Tag: rel-1-2-patches mount_cdrom Log Message: reboot after update Index: mount_cdrom =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/initrd/mount_cdrom,v retrieving revision 1.25.2.4 retrieving revision 1.25.2.5 diff -u -d -r1.25.2.4 -r1.25.2.5 --- mount_cdrom 26 Apr 2005 03:26:15 -0000 1.25.2.4 +++ mount_cdrom 29 Apr 2005 00:15:45 -0000 1.25.2.5 @@ -101,9 +101,14 @@ echo "Mounting old version" $NORMAL mount -o loop -t iso9660 /mnt/bootcd.iso.old $1 || return 1 - echo $disk > /shm/DL_DEVICE - dl_version=`cat /mnt/DEVIL-LINUX 2> /dev/null` - exit 0 + # check if the DL ISO got upgraded + cd /cdrom + #change to new root + pivot_root . initrd + $RED + echo "Rebooting..." + $NORMAL + exec /bin/chroot . /sbin/reboot -f else echo "Activation failed" fi |