pinebook-pro.sh fstab convert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user