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 /)"
|
||||
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}')"
|
||||
options="cryptdevice=$uuid:$(basename "$root") "
|
||||
fi
|
||||
|
||||
options="${options}root=$root"
|
||||
|
||||
find /boot/loader/entries/ | while read -r e; do
|
||||
echo "options $options rw" >> "$e"
|
||||
for f in /boot/loader/entries/*.conf; do
|
||||
echo "options $options rw" >> "$f"
|
||||
done
|
||||
|
||||
echo -e "${BOLD}${GREEN}DONE. You can install a desktop environment \
|
||||
|
Loading…
Reference in New Issue
Block a user