|
|
@ -24,18 +24,15 @@ else
|
|
|
|
echo "ERROR: [/sbin/parted /dev/mmcblk0 set 1 boot on] failed" >> /var/log/netinstall.log
|
|
|
|
echo "ERROR: [/sbin/parted /dev/mmcblk0 set 1 boot on] failed" >> /var/log/netinstall.log
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#FIXME: convert to /proc/mounts
|
|
|
|
|
|
|
|
#Find Target Partition and FileSystem
|
|
|
|
#Find Target Partition and FileSystem
|
|
|
|
if [ -f /etc/mtab ] ; then
|
|
|
|
if [ -f /boot/uboot/mounts ] ; then
|
|
|
|
FINAL_PART=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $1}')
|
|
|
|
echo "cat /boot/uboot/mounts..." >> /var/log/netinstall.log
|
|
|
|
FINAL_FSTYPE=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $5}')
|
|
|
|
cat /boot/uboot/mounts >> /var/log/netinstall.log
|
|
|
|
|
|
|
|
FINAL_PART=$(cat /boot/uboot/mounts | grep /dev/ | grep "/target " | awk '{print $1}')
|
|
|
|
|
|
|
|
FINAL_FSTYPE=$(cat /boot/uboot/mounts | grep /dev/ | grep "/target " | awk '{print $3}')
|
|
|
|
else
|
|
|
|
else
|
|
|
|
#Currently only Maverick, but log if something else does it..
|
|
|
|
echo "ERROR: [/boot/uboot/mounts] was missing..." >> /var/log/netinstall.log
|
|
|
|
touch /boot/uboot/backup/no_mtab
|
|
|
|
|
|
|
|
FINAL_PART=$(cat /mounts | grep /dev/ | grep "/target " | awk '{print $1}')
|
|
|
|
|
|
|
|
FINAL_FSTYPE=$(cat /mounts | grep /dev/ | grep "/target " | awk '{print $3}')
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
mount > /boot/uboot/backup/mount.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Cleanup: NetInstall Files
|
|
|
|
#Cleanup: NetInstall Files
|
|
|
|
rm -f /boot/uboot/uInitrd.net || true
|
|
|
|
rm -f /boot/uboot/uInitrd.net || true
|
|
|
|