mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-04 13:05:00 +08:00
kernel parameters normally identify root filesystem as readonly before boot process remounts them writable, so the readonly parameter does not identify readonly filesystems the script reduces scope to btrfs for simplicity as a standard linux util, findmnt is copied & used arrange commands so executables are checked before file system queries and short-circuit evaluation skips unavailable commands for robustness, trap on error & exit events replace panic with failure logging, since panic doesn't appear to break to shell
16 lines
211 B
Bash
Executable File
16 lines
211 B
Bash
Executable File
#!/bin/sh -e
|
|
PREREQ=
|
|
prereqs() {
|
|
echo "$PREREQ"
|
|
}
|
|
case "$1" in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
manual_add_modules overlay
|
|
copy_exec /usr/bin/findmnt /usr/bin
|