dailies: Add mount options
Let's add the mount options to all the scripts that run daily, to see if this helps at all...
This commit is contained in:
@@ -107,7 +107,12 @@ make_fstab
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
|
||||
# Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot
|
||||
# We do this down here because we don't know the UUID until after the image is created
|
||||
|
||||
@@ -112,7 +112,12 @@ make_fstab
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
|
||||
|
||||
# Ensure we don't have root=/dev/sda3 in the extlinux.conf which comes from running u-boot-menu in a cross chroot
|
||||
|
||||
@@ -208,7 +208,12 @@ make_fstab
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -82,7 +82,12 @@ include rpi_firmware
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -208,7 +208,12 @@ make_fstab
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -82,7 +82,12 @@ include rpi_firmware
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -81,7 +81,12 @@ include rpi_firmware
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -82,7 +82,12 @@ include rpi_firmware
|
||||
# Create the dirs for the partitions and mount them
|
||||
status "Create the dirs for the partitions and mount them"
|
||||
mkdir -p "${base_dir}"/root/
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
mkdir -p "${base_dir}"/root/boot
|
||||
mount "${bootp}" "${base_dir}"/root/boot
|
||||
|
||||
|
||||
@@ -156,7 +156,12 @@ make_fstab
|
||||
# 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
|
||||
# Test only
|
||||
if [[ $fstype == ext4 ]]; then
|
||||
mount -t ext4 -o noatime,data=writeback,barrier=0,nobh "${rootp}" "${base_dir}"/root
|
||||
else
|
||||
mount "${rootp}" "${base_dir}"/root
|
||||
fi
|
||||
|
||||
status "Rsyncing rootfs into image file"
|
||||
rsync -HPavz -q "${work_dir}"/ "${base_dir}"/root/
|
||||
|
||||
Reference in New Issue
Block a user