Perform fsck on all rootfs.

LP: #1912835
raspi-settings-hack
Dimitri John Ledkov 4 years ago
parent d699d8db19
commit 33b7272a23
No known key found for this signature in database
GPG Key ID: 9B8EC849D5EF70ED

@ -49,7 +49,7 @@ create_and_mount_uefi_partition() {
mount "${uefi_dev}" "$mountpoint"/boot/efi mount "${uefi_dev}" "$mountpoint"/boot/efi
cat << EOF >> "mountpoint/etc/fstab" cat << EOF >> "mountpoint/etc/fstab"
LABEL=UEFI /boot/efi vfat defaults 0 0 LABEL=UEFI /boot/efi vfat defaults 0 1
EOF EOF
} }

@ -2,5 +2,5 @@
cat >>/etc/fstab<<EOT cat >>/etc/fstab<<EOT
# Minimal setup required for systemd to provide a r/w FS # Minimal setup required for systemd to provide a r/w FS
/dev/root / rootfs defaults 0 0 /dev/root / rootfs defaults 0 1
EOT EOT

@ -72,7 +72,7 @@ if [ -n "${root_fs_label}" ]; then
sed -i "s,^[^#${bl}]*\([${bl}]*/[${bl}].*\),${lstr}\1," "${rootd}/etc/fstab" sed -i "s,^[^#${bl}]*\([${bl}]*/[${bl}].*\),${lstr}\1," "${rootd}/etc/fstab"
fi fi
cat > /etc/fstab << EOM cat > /etc/fstab << EOM
LABEL=cloudimg-rootfs / ext4 defaults 0 0 LABEL=cloudimg-rootfs / ext4 defaults 0 1
EOM EOM
# for quantal and newer, add /etc/overlayroot.local.conf # for quantal and newer, add /etc/overlayroot.local.conf

@ -48,7 +48,7 @@ hv_sock
EOF EOF
cat << EOF >> "${scratch_d}/etc/fstab" cat << EOF >> "${scratch_d}/etc/fstab"
LABEL=$FS_LABEL / ext4 defaults 0 0 LABEL=$FS_LABEL / ext4 defaults 0 1
EOF EOF
# Customise xrdp # Customise xrdp

Loading…
Cancel
Save