Skip to content
Snippets Groups Projects
Commit 63408776 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

cleanup old mkinitcpio preset

parent c26db49a
No related branches found
No related tags found
No related merge requests found
# 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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment