fix: paths
This commit is contained in:
parent
6ea927e3b9
commit
76de231f73
6
base.sh
6
base.sh
@ -58,15 +58,15 @@ bootctl install
|
|||||||
|
|
||||||
root="$(findmnt -nr -o source /)"
|
root="$(findmnt -nr -o source /)"
|
||||||
cryptdev="$(cryptsetup status "$root" | grep device | awk '{print $2}' || true)"
|
cryptdev="$(cryptsetup status "$root" | grep device | awk '{print $2}' || true)"
|
||||||
if "$cryptdev"; then
|
if [ -n "$cryptdev" ]; then
|
||||||
uuid="$(blkid | grep /dev/nvme0n1p2 | awk '{print $2}')"
|
uuid="$(blkid | grep /dev/nvme0n1p2 | awk '{print $2}')"
|
||||||
options="cryptdevice=$uuid:$(basename "$root") "
|
options="cryptdevice=$uuid:$(basename "$root") "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
options="${options}root=$root"
|
options="${options}root=$root"
|
||||||
|
|
||||||
find /boot/loader/entries/ | while read -r e; do
|
for f in /boot/loader/entries/*.conf; do
|
||||||
echo "options $options rw" >> "$e"
|
echo "options $options rw" >> "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e "${BOLD}${GREEN}DONE. You can install a desktop environment \
|
echo -e "${BOLD}${GREEN}DONE. You can install a desktop environment \
|
||||||
|
Loading…
Reference in New Issue
Block a user