Printear modulo en setup

This commit is contained in:
Cat /dev/Nulo 2022-06-17 22:18:59 -03:00
parent bf3dbab6e8
commit 5cad62cb1f
3 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,3 @@
print("=> Module: kernel")
modules.kernel = {}
add_packages({ "linux-virt" })

View file

@ -1,5 +1,3 @@
print("=> Module: runit")
mkdir("/etc/runit/runsvdir/default")
add_symlink("/etc/runit/runsvdir/current", "/etc/runit/runsvdir/default")
add_symlink("/etc/service", "/etc/runit/runsvdir/current")

View file

@ -40,8 +40,12 @@ end
print("=> Initializing rootfs...")
utils.expect_nil(alpine.init_rootfs(root, alpine_base_version, alpine_version))
require("modules/kernel")
require("modules/runit")
local function module(name)
print("=> Module: " .. name)
require("modules/" .. name)
end
module "kernel"
module "runit"
print("=> Writing fstab...")
add_file("/etc/fstab", utils.join_table(mounts, "\n"))