fix hostname

This commit is contained in:
user 2023-06-02 10:47:54 +02:00
parent 71285aa208
commit 6f4b6564fa
2 changed files with 57 additions and 51 deletions

View file

@ -16,7 +16,7 @@ SUDOERS="/etc/sudoers"
autostartdesktop=sway
repo=SpectreOS
repo1=shell-scripte-code
hostname=$(hostnamectl hostname)
hostname=$(cat /etc/hostname)
user=user1
userpass=user1
arch=$(uname -m)

View file

@ -96,6 +96,12 @@ function system() {
echo "MODULES=\"amdgpu i915 nouveau fuse loop\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
echo "HOOKS=\"base udev keyboard keymap consolefont modconf archiso block filesystems\"" >> ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
echo "COMPRESSION=\"zstd\"" >> ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
#hostname
hostname=SpectreOS
echo "${hostname}" > ${work_dir}/${arch}/airootfs/etc/hostname
echo "hostname=\"${hostname}\"" > ${work_dir}/${arch}/airootfs/etc/conf.d/hostname
fi
}