define initramfs scripts for ubuntu

provide a hook to require overlayfs module so the file system is available
define a general script to overlay any readonly root filesystem into a non-persistent, writable filesystem
This commit is contained in:
Luis Marsano
2022-12-19 16:34:09 -05:00
parent 89ef805e81
commit 4e4e853f2d
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/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