Skip to content

Commit

Permalink
Don't unmount /boot or /efi
Browse files Browse the repository at this point in the history
  • Loading branch information
leomeinel authored Sep 5, 2022
1 parent 048d84d commit 6b123c9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ doas cryptboot umount
# Configure custom-efibackup.sh
doas sh -c '{
echo "#!/bin/sh"
echo ""
echo "set -e"
echo "if /usr/bin/mountpoint -q /efi"
echo "then"
echo " /usr/bin/umount -AR /efi
echo "fi"
echo "if /usr/bin/mountpoint -q /.efi.bak"
echo "then"
echo " /usr/bin/umount -AR /.efi.bak
echo "fi"
echo "if /usr/bin/mountpoint -q /boot"
echo "then"
echo " /usr/bin/umount -AR /boot
echo "fi"
echo "/usr/bin/cryptboot mount"
echo "/usr/bin/mount /.efi.bak"
echo "/usr/bin/rsync -aq --delete --mkpath /.efi.bak/ /.efi.bak.old"
Expand All @@ -33,7 +47,6 @@ doas sh -c '{
echo " /usr/bin/rsync -aq --delete --mkpath /.boot.bak/ /.boot.bak.old"
echo "fi"
echo "/usr/bin/rsync -aq --delete --mkpath /boot/ /.boot.bak"
echo "/usr/bin/cryptboot umount"
echo "/usr/bin/umount /.efi.bak"
} > /etc/pacman.d/hooks/scripts/custom-efibackup.sh'
doas chmod 744 /etc/pacman.d/hooks/scripts/*.sh
Expand Down

0 comments on commit 6b123c9

Please sign in to comment.