V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m41s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-28 17:40:06 +02:00
parent 44b3d1fb60
commit d43638d262
10 changed files with 159 additions and 189 deletions

View File

@@ -30,6 +30,10 @@ installation_initramfs() {
### Declare Arrays, HashMaps, and Variables.
declare var_modules=""
### Install the script to be called by 'update-initramfs' to enforce merged-/usr symlinks inside the initramfs image.
install -D -m 0755 -o root -g root "${VAR_SETUP_PATH}/includes/target/etc/initramfs-tools/hooks/custom-usrmerge.sh" \
"${TARGET}/etc/initramfs-tools/hooks/"
### Install the script to be called by 'update-initramfs' for installing the necessary modules to load into initramfs environment.
install -D -m 0644 -o root -g root "${VAR_SETUP_PATH}/includes/target/etc/initramfs-tools/modules" \
"${TARGET}/etc/initramfs-tools/"
@@ -50,9 +54,9 @@ EOF
## 'most' - Add most filesystem and all hard-drive drivers.
## 'dep' - Try and guess the modules to load.
insert_header "${TARGET}/etc/initramfs-tools/conf.d/driver-policy"
insert_header "${TARGET}/etc/initramfs-tools/conf.d/driver-policy"
insert_comments "${TARGET}/etc/initramfs-tools/conf.d/driver-policy"
cat << EOF >> "${TARGET}/etc/initramfs-tools/conf.d/driver-policy"
cat << EOF >> "${TARGET}/etc/initramfs-tools/conf.d/driver-policy"
# Driver inclusion policy selected during installation.
# Note: This setting overrides the value set in the file '/etc/initramfs-tools/initramfs.conf'.
@@ -61,9 +65,9 @@ MODULES=dep
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
EOF
insert_header "${TARGET}/etc/initramfs-tools/conf.d/fsroot"
insert_header "${TARGET}/etc/initramfs-tools/conf.d/fsroot"
insert_comments "${TARGET}/etc/initramfs-tools/conf.d/fsroot"
cat << EOF >> "${TARGET}/etc/initramfs-tools/conf.d/fsroot"
cat << EOF >> "${TARGET}/etc/initramfs-tools/conf.d/fsroot"
FSTYPE=${VAR_ROOT_FS}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh