mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-02 15:07: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
|
# mounting storage and efi partitions
|
||||||
mount "$disk""$((2 + "$partitions"))" /mnt
|
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
|
mount "$disk""$((1 + "$partitions"))" /mnt/boot/EFI
|
||||||
else
|
else
|
||||||
# mbr/bios partitioning
|
# mbr/bios partitioning
|
||||||
@@ -133,7 +133,7 @@ else
|
|||||||
|
|
||||||
# mounting storage (no efi partition, using dos label)
|
# mounting storage (no efi partition, using dos label)
|
||||||
mount "$disk""$((1 + "$partitions"))" /mnt
|
mount "$disk""$((1 + "$partitions"))" /mnt
|
||||||
mkdir /mnt/etc
|
mkdir -p /mnt/etc/conf.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create and mount swap file
|
# create and mount swap file
|
||||||
@@ -149,6 +149,7 @@ fstabgen -U /mnt >> /mnt/etc/fstab
|
|||||||
|
|
||||||
# setting hostname
|
# setting hostname
|
||||||
echo "$hostname" > /mnt/etc/hostname
|
echo "$hostname" > /mnt/etc/hostname
|
||||||
|
echo "hostname=\'"$hostname"\'" > /mnt/etc/conf.d/hostname
|
||||||
|
|
||||||
# installing base packages
|
# 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'
|
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