Compare commits

..

3 commits

Author SHA1 Message Date
5ac76ae983 Setear hostname
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-06-17 22:19:23 -03:00
5cad62cb1f Printear modulo en setup 2022-06-17 22:18:59 -03:00
bf3dbab6e8 kernel: No instalar syslinux 2022-06-17 22:18:41 -03:00
4 changed files with 12 additions and 6 deletions

1
modules/hostname.lua Normal file
View file

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

View file

@ -1,7 +1,6 @@
print("=> Module: kernel")
modules.kernel = {} modules.kernel = {}
add_packages({ "linux-virt", "syslinux" }) add_packages({ "linux-virt" })
add_file("/etc/update-extlinux.conf", [[# configuration for extlinux config builder add_file("/etc/update-extlinux.conf", [[# configuration for extlinux config builder
# Overwrite current /boot/extlinux.conf. # Overwrite current /boot/extlinux.conf.

View file

@ -1,5 +1,3 @@
print("=> Module: runit")
mkdir("/etc/runit/runsvdir/default") mkdir("/etc/runit/runsvdir/default")
add_symlink("/etc/runit/runsvdir/current", "/etc/runit/runsvdir/default") add_symlink("/etc/runit/runsvdir/current", "/etc/runit/runsvdir/default")
add_symlink("/etc/service", "/etc/runit/runsvdir/current") add_symlink("/etc/service", "/etc/runit/runsvdir/current")
@ -251,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

@ -40,8 +40,13 @@ end
print("=> Initializing rootfs...") print("=> Initializing rootfs...")
utils.expect_nil(alpine.init_rootfs(root, alpine_base_version, alpine_version)) utils.expect_nil(alpine.init_rootfs(root, alpine_base_version, alpine_version))
require("modules/kernel") local function module(name)
require("modules/runit") print("=> Module: " .. name)
require("modules/" .. name)
end
module "kernel"
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"))