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

5
initramfs/ubuntu/setup Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd -P -- "$(dirname -- "$BASH_SOURCE")" && pwd)"
install {"$SCRIPT_DIR",/etc/initramfs-tools}/hooks/grub-btrfs-overlay
install {"$SCRIPT_DIR",/etc/initramfs-tools}/scripts/local-bottom/grub-btrfs-overlay