From 5ac76ae983a413ca3559190a1f283aefdefcc57a Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 17 Jun 2022 22:19:09 -0300 Subject: [PATCH] Setear hostname --- modules/hostname.lua | 1 + modules/runit.lua | 3 +++ setup.lua | 1 + 3 files changed, 5 insertions(+) create mode 100644 modules/hostname.lua 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"))