mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 04:46:27 -04:00
Properly set hostname for OpenRC
This commit is contained in:
+3
-2
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user