Compare commits
2 Commits
53cc21a6f1
...
8a27b4e196
Author | SHA1 | Date | |
---|---|---|---|
8a27b4e196 | |||
782be942eb |
@ -8,8 +8,13 @@ if not test -d "/etc/snap-pac-uki"
|
|||||||
echo "created config dir."
|
echo "created config dir."
|
||||||
end
|
end
|
||||||
|
|
||||||
cp ./src/config.fish /etc/snap-pac-uki/config.fish
|
if not test -f "/etc/snap-pac-uki/config.fish"
|
||||||
echo "installed config script."
|
cp ./src/config.fish /etc/snap-pac-uki/config.fish
|
||||||
|
echo "installed config script."
|
||||||
|
else
|
||||||
|
cp ./src/config.fish /etc/snap-pac-uki/config-new.fish
|
||||||
|
echo "found existing config script -> installed as -new file."
|
||||||
|
end
|
||||||
|
|
||||||
cp ./pacman/* /usr/share/libalpm/hooks/
|
cp ./pacman/* /usr/share/libalpm/hooks/
|
||||||
echo "installed pacman hooks."
|
echo "installed pacman hooks."
|
||||||
|
@ -12,6 +12,9 @@ function config -d "sets some configuration variables"
|
|||||||
# images.
|
# images.
|
||||||
set -g CFG_DEFAULT_SUBVOL "@"
|
set -g CFG_DEFAULT_SUBVOL "@"
|
||||||
|
|
||||||
|
# Wheter to add a new EFI entry for a new snapshot uki
|
||||||
|
set -g CFG_EFI "yes"
|
||||||
|
|
||||||
# The device the EFI partition resides on
|
# The device the EFI partition resides on
|
||||||
set -g CFG_EFI_DEV "/dev/nvme0n1"
|
set -g CFG_EFI_DEV "/dev/nvme0n1"
|
||||||
|
|
||||||
|
@ -138,9 +138,11 @@ function main
|
|||||||
cp "$CFG_BUILD_DIR/$id/arch-linux-$id.efi" "$CFG_UKI_DIR"
|
cp "$CFG_BUILD_DIR/$id/arch-linux-$id.efi" "$CFG_UKI_DIR"
|
||||||
echo " -> copied uki for snapshot $id into uki directory"
|
echo " -> copied uki for snapshot $id into uki directory"
|
||||||
|
|
||||||
|
if test "$CFG_EFI" = "yes"
|
||||||
add_efi_entry $id
|
add_efi_entry $id
|
||||||
echo " -> created efi boot entry for uki of snapshot $id"
|
echo " -> created efi boot entry for uki of snapshot $id"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
case "current"
|
case "current"
|
||||||
echo "==> creating current ukis"
|
echo "==> creating current ukis"
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
rm /usr/local/bin/snap-pac-uki
|
rm /usr/local/bin/snap-pac-uki
|
||||||
echo "removed script."
|
echo "removed script."
|
||||||
|
|
||||||
rm /etc/snap-pac-uki/config.fish
|
|
||||||
echo "removed config script."
|
|
||||||
|
|
||||||
for name in (ls ./pacman)
|
for name in (ls ./pacman)
|
||||||
rm /usr/share/libalpm/hooks/$name
|
rm /usr/share/libalpm/hooks/$name
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user