Setear hostname
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2022-06-17 22:19:09 -03:00
parent 5cad62cb1f
commit 5ac76ae983
3 changed files with 5 additions and 0 deletions

1
modules/hostname.lua Normal file
View file

@ -0,0 +1 @@
add_file("/etc/hostname", "cauquenitx")

View file

@ -249,6 +249,9 @@ install -m0664 -o root -g utmp /dev/null /run/utmp
msg "Setting up loopback interface..." msg "Setting up loopback interface..."
ip link set up dev lo ip link set up dev lo
msg "Setting hostname..."
hostname -F /etc/hostname
]]) ]])
-- Initial boot -- Initial boot

View file

@ -46,6 +46,7 @@ local function module(name)
end end
module "kernel" module "kernel"
module "runit" module "runit"
module "hostname"
print("=> Writing fstab...") print("=> Writing fstab...")
add_file("/etc/fstab", utils.join_table(mounts, "\n")) add_file("/etc/fstab", utils.join_table(mounts, "\n"))