From 76de231f73c5d495994299f0737677336824f8e2 Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 14 Mar 2023 22:14:18 +0100 Subject: [PATCH] fix: paths --- base.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base.sh b/base.sh index e8417f8..d868680 100755 --- a/base.sh +++ b/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 \