diff --git a/modules/hostname.lua b/modules/hostname.lua new file mode 100644 index 0000000..a8cc642 --- /dev/null +++ b/modules/hostname.lua @@ -0,0 +1 @@ +add_file("/etc/hostname", "cauquenitx") diff --git a/modules/runit.lua b/modules/runit.lua index e347e5d..baa374e 100644 --- a/modules/runit.lua +++ b/modules/runit.lua @@ -249,6 +249,9 @@ install -m0664 -o root -g utmp /dev/null /run/utmp msg "Setting up loopback interface..." ip link set up dev lo + +msg "Setting hostname..." +hostname -F /etc/hostname ]]) -- Initial boot diff --git a/setup.lua b/setup.lua index 4119bcf..36abd57 100644 --- a/setup.lua +++ b/setup.lua @@ -46,6 +46,7 @@ local function module(name) end module "kernel" module "runit" +module "hostname" print("=> Writing fstab...") add_file("/etc/fstab", utils.join_table(mounts, "\n"))