hostname
This commit is contained in:
parent
bf5209e4f2
commit
7f0fb7150b
2 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,8 @@ username="$2"
|
||||||
userpass="$3"
|
userpass="$3"
|
||||||
archchroot="$4"
|
archchroot="$4"
|
||||||
|
|
||||||
[[ -z "${version}" ]] && version="voll"
|
hostname="$(cat /etc/hostname)"
|
||||||
|
version="${hostname#*-}"
|
||||||
[[ -z "${username}" ]] && username="user1"
|
[[ -z "${username}" ]] && username="user1"
|
||||||
[[ -z "${userpass}" ]] && userpass="user1"
|
[[ -z "${userpass}" ]] && userpass="user1"
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ parameter6="$7"
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
|
||||||
[[ -z "${version}" ]] && version="voll"
|
[[ -z "${version}" ]] && version="voll"
|
||||||
|
hostname="SpectreOS-${version}"
|
||||||
work_dir="${version}"
|
work_dir="${version}"
|
||||||
|
|
||||||
if [ "${version}" == "libre" ]; then
|
if [ "${version}" == "libre" ]; then
|
||||||
|
@ -408,6 +409,7 @@ if [ "${parameter2}" != "skip" ]; then
|
||||||
echo "Bitte führen sie arch-graphical-install-auto und die Version aus."
|
echo "Bitte führen sie arch-graphical-install-auto und die Version aus."
|
||||||
echo "Benutze Poweroff um das System wieder herunterzufahren und das Komprimieren zu beginnen :)"
|
echo "Benutze Poweroff um das System wieder herunterzufahren und das Komprimieren zu beginnen :)"
|
||||||
cp arch-graphical-install-auto ${work_dir}/${arch}/airootfs/usr/bin/arch-graphical-install-auto
|
cp arch-graphical-install-auto ${work_dir}/${arch}/airootfs/usr/bin/arch-graphical-install-auto
|
||||||
|
echo "${hostname}" > ${work_dir}/${arch}/airootfs/etc/hostname
|
||||||
if [ "${parameter6}" != "archchroot" ]; then
|
if [ "${parameter6}" != "archchroot" ]; then
|
||||||
systemd-nspawn -b -D ${work_dir}/${arch}/airootfs
|
systemd-nspawn -b -D ${work_dir}/${arch}/airootfs
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue