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 = {}
|
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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue