Update script to actually use snapshots

This commit is contained in:
Adrian Wannenmacher 2020-09-25 14:06:05 +02:00
parent 63d81b5e35
commit 279bf9ca96
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5

View File

@ -28,7 +28,11 @@ rm -rf "/tmp/snap-pac-uki/$id/*"
cd "/tmp/snap-pac-uki/$id"
sed "s/BUILD_ID=.*/BUILD_ID=\"Snapshot $id\"/" </usr/lib/os-release >./os-release
grep options /boot/loader/entries/00-arch.conf | string sub -s 9 | sed ':a;N;$!ba;s/\n/ /g' >./kernel-parameters
grep options /boot/loader/entries/00-arch.conf | \
string sub -s 9 | \
sed ':a;N;$!ba;s/\n/ /g' | \
sed "s/subvol=@/subvol=@snapshots\\/$id\\/snapshot/" >./kernel-parameters
# create uki