pinebook-pro.sh fstab convert

This commit is contained in:
Fran
2021-11-04 15:01:23 +01:00
parent 9e6602ae2b
commit 5113b82ea8

View File

@@ -56,8 +56,6 @@ include third_stage
# Clean system
include clean_system
trap clean_build ERR SIGTERM SIGINT
# Pull in the wifi and bluetooth firmware from manjaro's git repository
status "WiFi & bluetooth firmware"
@@ -208,17 +206,15 @@ if [[ "$fstype" == "ext4" ]]; then
elif [[ "$fstype" == "ext3" ]]; then
features="^64bit"
fi
mkfs -O "$features" -t "$fstype" -L ROOTFS "${rootp}"
mkfs -U "$root_uuid" -O "$features" -t "$fstype" -L ROOTFS "${rootp}"
# Create the dirs for the partitions and mount them
status "Create the dirs for the partitions and mount them"
mkdir -p "${base_dir}"/root/
mount "${rootp}" "${base_dir}"/root
# Create an fstab so that we don't mount / read-only
status "/etc/fstab"
UUID=$(blkid -s UUID -o value ${rootp})
echo "UUID=$UUID / $fstype errors=remount-ro 0 1" >> ${work_dir}/etc/fstab
# Make fstab.
make_fstab
# FUTURE: Move to debian u-boot when it works properly
# Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot