home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- PATH=/usr/bin:/bin
-
- echo Executing post-install...
- # Create /initrd so we can see /dos on it
- mkdir /mnt/initrd
- ln -sf /initrd/dos /mnt/mnt/dos
-
- # We need the loopback devices still, but they may have been removed...
- cp -arRv /mnt/dev/loop* /dev 2> /dev/null > /dev/null
-
- # Set up fstab correctly (add /, and swapfile)
- echo "/dev/loop7 / ext2 defaults 1 1" >> /mnt/etc/fstab
- echo "/initrd/dos/lnx4win/swapfile swap swap defaults 0 0" >> /mnt/etc/fstab
-
- # Set up kernel
- cp /dos/lnx4win/vmlinuz /dos/lnx4win/vmlinuz.old
- cp /mnt/boot/vmlinuz /dos/lnx4win/vmlinuz
- rdev /dos/lnx4win/vmlinuz /dev/loop7
-
- # Next time, we're not installing, we're booting linux...
- rm /dos/lnx4win/size.txt
- rm /dos/lnx4win/swapsize.txt
-
- # Clean up
- sync
- sync
-