Files
ZFSBootMenu-Root-Install/hostname.sh

10 lines
176 B
Bash

#!/bin/bash
set -euo pipefail
printf \
"${hostname}\n" | tee /mnt/etc/hostname &> /dev/null
printf \
"127.0.1.1\t${hostname}\n" | tee --append /mnt/etc/hosts &> /dev/null