Compare commits
3 commits
74a6f06f56
...
5ac76ae983
Author | SHA1 | Date | |
---|---|---|---|
5ac76ae983 | |||
5cad62cb1f | |||
bf3dbab6e8 |
4 changed files with 12 additions and 6 deletions
1
modules/hostname.lua
Normal file
1
modules/hostname.lua
Normal file
|
@ -0,0 +1 @@
|
|||
add_file("/etc/hostname", "cauquenitx")
|
|
@ -1,7 +1,6 @@
|
|||
print("=> Module: kernel")
|
||||
modules.kernel = {}
|
||||
|
||||
add_packages({ "linux-virt", "syslinux" })
|
||||
add_packages({ "linux-virt" })
|
||||
add_file("/etc/update-extlinux.conf", [[# configuration for extlinux config builder
|
||||
|
||||
# Overwrite current /boot/extlinux.conf.
|
||||
|
|
|
@ -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")
|
||||
|
@ -251,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
|
||||
|
|
|
@ -40,8 +40,13 @@ 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"
|
||||
module "hostname"
|
||||
|
||||
print("=> Writing fstab...")
|
||||
add_file("/etc/fstab", utils.join_table(mounts, "\n"))
|
||||
|
|
Loading…
Reference in a new issue