Raspi-image-spec/rootfs/etc
Diederik de Haas 82dfcf25ff
Explicitly copy 'fsck*' into the initramfs
While fsck.ext4 and fsck.vfat are part of the initramfs, it turns out
that fsck itself isn't!
While it normally gets included in the initramfs, for some reason that
doesn't happen with our image creation, so it isn't available on first
boot, so explicitly copy 'fsck' so that it will be included.
For that to work, 'logsave' is needed too, so include that as well.

During boot up, initramfs wants to check the filesystems and it does so
via `fsck`, which then (presumably) checks the filesystem being used
and calls the appropriate fsck.* to do the actual checking.
But when `fsck` itself isn't available you get the following warning:
"Warning: fsck not present, so skipping root file system"
When it is available, you'll get a message like this:
"Begin: Will now check root file system ... fsck from util-linux 2.38.1"

Let's also follow our own advise and not *assume* the needed fsck
programs are present in initramfs, but add them explicitly.

Now we can start the resize operations while knowing the current
filesystem is in a proper/clean state.
2022-12-01 18:29:17 +01:00
..
initramfs-tools Explicitly copy 'fsck*' into the initramfs 2022-12-01 18:29:17 +01:00
network/interfaces.d Use ASCII-only chars in the comments of wlan0 configuration 2021-07-30 12:26:56 -05:00
systemd/system rpi-resizerootfs: switch the root filesystem resizing away from a systemd oneshot service 2021-05-10 14:08:07 -04:00
fstab Stop hardcoding the mount line for /proc in /etc/fstab (re: issue #34) 2020-11-12 19:25:25 -06:00