16 |
if [[ -z ${PARTITION_DISK_BOOT} ]] |
if [[ -z ${PARTITION_DISK_BOOT} ]] |
17 |
then |
then |
18 |
# delete the entry |
# delete the entry |
19 |
sed -i 's/\/dev\/ROOT.*/d' ${INSTALL_ROOT}/etc/fstab |
sed -i '/^\/dev\/BOOT.*/d' ${INSTALL_ROOT}/etc/fstab |
20 |
else |
else |
21 |
sed -i "s:^/dev/BOOT.*:UUID=$(get_uuid ${PARTITION_DISK_BOOT})\t/boot\t\t${PARTITION_FS_BOOT}\t\tnoauto,noatime\t1 1:" ${INSTALL_ROOT}/etc/fstab |
sed -i "s:^/dev/BOOT.*:UUID=$(get_uuid ${PARTITION_DISK_BOOT})\t/boot\t\t${PARTITION_FS_BOOT}\t\tnoauto,noatime\t1 1:" ${INSTALL_ROOT}/etc/fstab |
22 |
fi |
fi |