From 92f48e2580690eacf5a46bcd8f5bc216f93985c4 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 25 Jun 2022 23:29:39 -0400 Subject: [PATCH] Properly set hostname for OpenRC --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 87c7897..f8be849 100755 --- a/install.sh +++ b/install.sh @@ -103,7 +103,7 @@ if [ "$boot" == 1 ]; then # mounting storage and efi partitions mount "$disk""$((2 + "$partitions"))" /mnt - mkdir -p /mnt/{boot/EFI,etc} + mkdir -p /mnt/{boot/EFI,etc/conf.d} mount "$disk""$((1 + "$partitions"))" /mnt/boot/EFI else # mbr/bios partitioning @@ -133,7 +133,7 @@ else # mounting storage (no efi partition, using dos label) mount "$disk""$((1 + "$partitions"))" /mnt - mkdir /mnt/etc + mkdir -p /mnt/etc/conf.d fi # create and mount swap file @@ -149,6 +149,7 @@ fstabgen -U /mnt >> /mnt/etc/fstab # setting hostname echo "$hostname" > /mnt/etc/hostname +echo "hostname=\'"$hostname"\'" > /mnt/etc/conf.d/hostname # installing base packages base_devel='db diffutils gc guile libisl libmpc perl autoconf automake binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman patch pkgconf sed opendoas texinfo which'