This commit is contained in:
Your Name 2024-02-17 11:39:19 -07:00
parent 5e0d9d2013
commit 67932fd5ac

View File

@ -320,7 +320,7 @@ snapshots() {
TEMPLATE="/efi/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" TEMPLATE="/efi/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"
LOADER_FILE="/efi/loader/entries/snapshot-$MACHINE_ID-$KERNEL_VERSION.conf" LOADER_FILE="/efi/loader/entries/snapshot-$MACHINE_ID-$KERNEL_VERSION.conf"
cp -f $TEMPLATE $LOADER_FILE cp -f $TEMPLATE $LOADER_FILE
sed -i "s/@${ROOT_NAME}/.snapshots\/snapshot-root-${DATE}/" $LOADER_FILE sed -i "s/@${ROOT_NAME}/@.snapshots\/snapshot-root-${DATE}/" $LOADER_FILE
} }
remove-snapshots() { remove-snapshots() {