Compare commits

..

No commits in common. "5ac76ae983a413ca3559190a1f283aefdefcc57a" and "74a6f06f569f9a3b8509b3decda3aae1b86d6638" have entirely different histories.

4 changed files with 6 additions and 12 deletions

View file

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

View file

@ -1,6 +1,7 @@
print("=> Module: kernel")
modules.kernel = {} modules.kernel = {}
add_packages({ "linux-virt" }) add_packages({ "linux-virt", "syslinux" })
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,3 +1,5 @@
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")
@ -249,9 +251,6 @@ 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,13 +40,8 @@ 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))
local function module(name) require("modules/kernel")
print("=> Module: " .. name) require("modules/runit")
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"))