fix: 🐛 fix some bugs in the previous commit
This commit is contained in:
parent
53279cb983
commit
5383069d66
@ -7,7 +7,7 @@ function error -d "prints an error and terminates the program" -a error
|
|||||||
end
|
end
|
||||||
|
|
||||||
function checkdeps -d "check for depenencies"
|
function checkdeps -d "check for depenencies"
|
||||||
set -l deps "jq" "snapper" "efibootmgr"
|
set -l deps "jq" "snapper" "efibootmgr" "rg"
|
||||||
|
|
||||||
for dep in $deps
|
for dep in $deps
|
||||||
which $dep >/dev/null 2>/dev/null
|
which $dep >/dev/null 2>/dev/null
|
||||||
@ -65,8 +65,8 @@ function create_uki -d "creates a new uki"
|
|||||||
|
|
||||||
# os-release
|
# os-release
|
||||||
cp /usr/lib/os-release "$bp/os-release"
|
cp /usr/lib/os-release "$bp/os-release"
|
||||||
sed "s/BUILD_ID=.*/BUILD_ID=fallback/" </usr/lib/os-release | sed "s/PRETTY_NAME=\"\(.*\)\"/PRETTY_NAME=\"\1 (Fallback)\"" >"$bp/os-release-fallback"
|
sed "s/BUILD_ID=.*/BUILD_ID=fallback/" </usr/lib/os-release | sed "s/PRETTY_NAME=\"\(.*\)\"/PRETTY_NAME=\"\1 (Fallback)\"/" >"$bp/os-release-fallback"
|
||||||
sed "s/BUILD_ID=.*/BUILD_ID=\"snapshot $SNAPSHOT_ID\"/" </usr/lib/os-release | sed "s/PRETTY_NAME=\"\(.*\)\"/PRETTY_NAME=\"\1 (Snapshot $SNAPSHOT_ID)\"" >"$bp/os-release-snapshot"
|
sed "s/BUILD_ID=.*/BUILD_ID=\"snapshot $SNAPSHOT_ID\"/" </usr/lib/os-release | sed "s/PRETTY_NAME=\"\(.*\)\"/PRETTY_NAME=\"\1 (Snapshot $SNAPSHOT_ID)\"/" >"$bp/os-release-snapshot"
|
||||||
|
|
||||||
# kernel cmd
|
# kernel cmd
|
||||||
echo $KERNEL_CMD | sed "s/SNAPSHOT/$ROOT_SUBVOL/" >"$bp/kernel-cmd"
|
echo $KERNEL_CMD | sed "s/SNAPSHOT/$ROOT_SUBVOL/" >"$bp/kernel-cmd"
|
||||||
|
Loading…
Reference in New Issue
Block a user