Printear modulo en setup
This commit is contained in:
parent
bf3dbab6e8
commit
5cad62cb1f
3 changed files with 6 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
print("=> Module: kernel")
|
||||
modules.kernel = {}
|
||||
|
||||
add_packages({ "linux-virt" })
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue