16 lines
256 B
Bash
Executable File
16 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
|
|
baseDir="$(realpath "$(dirname "${0}")")"
|
|
|
|
source \
|
|
"${baseDir}/system.conf"
|
|
|
|
|
|
printf \
|
|
"${hostname}\n" | tee /mnt/etc/hostname &> /dev/null
|
|
|
|
printf \
|
|
"127.0.1.1\t${hostname}\n" | tee --append /mnt/etc/hosts &> /dev/null
|