Update script to actually use snapshots
This commit is contained in:
parent
63d81b5e35
commit
279bf9ca96
@ -28,7 +28,11 @@ rm -rf "/tmp/snap-pac-uki/$id/*"
|
|||||||
cd "/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
|
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
|
# create uki
|
||||||
|
Loading…
Reference in New Issue
Block a user