All pastes #898275 Raw Edit

Something

public text v1 · immutable
·published 2008-02-10 05:29 UTC
rendered paste body
device=`mount |egrep $TARGET | cut -d " " -f 1`
   
   rootfs=`mount | grep $device | cut -d " " -f5`   
   echo "$device / $rootfs	defaults	1 1" > $TARGET/etc/fstab
   if [ $sephome == "yes" ]; then
     homefs=`mount | grep $HOME | cut -d " " -f5`
     echo "$HOME /home $homefs	defaults	1 2" >> $TARGET/etc/fstab
   fi
   swap=`fdisk -l|grep swap|cut -d " " -f1`
   if [ $swap ];then
    echo "$swap       none   swap   sw   0  0" >>$TARGET/etc/fstab
   fi
   echo "
   devpts           /dev/pts         devpts       gid=5,mode=620   0   0
   proc             /proc            proc         defaults         0   0
   /dev/fd0         /mnt/floppy      vfat,msdos  noauto,users,suid,dev,exec 0 0
   /dev/hdc /mnt/hdc_cdrom iso9660 noauto,users,exec 0 0 # AutoUpdate
   /dev/hdd /mnt/hdc_cdrom iso9660 noauto,users,exec 0 0 # AutoUpdate
   /dev/hda1 /mnt/hda1 reiserfs auto,users,suid,dev,exec 0 0 # AutoUpdate
   /dev/hda6 /mnt/hda6 reiserfs auto,users,suid,dev,exec 0 0 # AutoUpdate" >> $TARGET/etc/fstab