fix hostname
This commit is contained in:
parent
71285aa208
commit
6f4b6564fa
2 changed files with 57 additions and 51 deletions
|
@ -16,7 +16,7 @@ SUDOERS="/etc/sudoers"
|
||||||
autostartdesktop=sway
|
autostartdesktop=sway
|
||||||
repo=SpectreOS
|
repo=SpectreOS
|
||||||
repo1=shell-scripte-code
|
repo1=shell-scripte-code
|
||||||
hostname=$(hostnamectl hostname)
|
hostname=$(cat /etc/hostname)
|
||||||
user=user1
|
user=user1
|
||||||
userpass=user1
|
userpass=user1
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
|
|
@ -96,6 +96,12 @@ function system() {
|
||||||
echo "MODULES=\"amdgpu i915 nouveau fuse loop\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf
|
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 "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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue