diff --git a/README.md b/README.md index 7a0664bddb19d07fb28680c56a5785669ccaf671..293a33410f5e46ac25316b0c897b0412cd18d8b2 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # Shared bootdir helper +> Sharing the same `/boot` between multiple linux installations. + Background: <https://recolic.net/blog/post/deniable-encryption-and-shared-boot-partition> -You may have multiple linux installations, and they want to share the same `/boot` directory. -However, each of them want different kernel paramters. +You have multiple linux installations, with the same `/boot`. +However, each of them want different kernel paramters. This scenario usually appears while you want to deniable-encrypt all your computers, without -bringing tons of USB sticks with you. +bringing many USB sticks with you. ## Problem1 - multiple installations may share the same vmlinuz filename diff --git a/src/hook-kernel-rename.sh b/src/hook-kernel-rename.sh index 7037292b58c068a4fc84287be387bceaa28baebd..a6f5ea60354eb36aee7c184bb0d9497e4a324b99 100755 --- a/src/hook-kernel-rename.sh +++ b/src/hook-kernel-rename.sh @@ -51,5 +51,8 @@ while read -r line; do echo "Renamed pkgbase from $pkgbase to $new_pkgbase successfully. " 1>&2 || exit $? # Crash on error + + # Remove old mkinitcpio presets + [[ -f "/etc/mkinitcpio.d/${pkgbase}.preset" ]] && mv "/etc/mkinitcpio.d/${pkgbase}.preset" "/etc/mkinitcpio.d/${pkgbase}.preset.pacsave" && echo "Did old mkinitcpio.preset cleanup." done