Compare commits
5 commits
95a43f2c8b
...
962493f352
Author | SHA1 | Date | |
---|---|---|---|
962493f352 | |||
986a5cc1ee | |||
4622625570 | |||
88e9406963 | |||
320e94b40d |
3 changed files with 11 additions and 2 deletions
|
@ -2,6 +2,7 @@ mkdir("/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/runit/stopit", "/run/runit/stopit")
|
||||
add_symlink("/etc/runit/reboot", "/run/runit/reboot")
|
||||
|
||||
local t = require "../utils/templater"
|
||||
local function add_executable(path, script)
|
||||
|
@ -361,9 +362,17 @@ if [ -z "$VIRTUALIZATION" ]; then
|
|||
fi
|
||||
]])
|
||||
|
||||
-- https://wiki.gentoo.org/wiki/Runit#Reboot_and_shutdown
|
||||
add_executable("/usr/local/sbin/rpoweroff", [[#!/bin/sh
|
||||
runit-init 0]])
|
||||
add_executable("/usr/local/sbin/rreboot", [[#!/bin/sh
|
||||
runit-init 6]])
|
||||
|
||||
add_packages({ "runit", "eudev" })
|
||||
modules.runit.add_service("getty-tty1", [[#!/bin/sh
|
||||
exec chpst -P getty 38400 tty1 linux]], false)
|
||||
modules.runit.add_service("getty-tty2", [[#!/bin/sh
|
||||
exec chpst -P getty 38400 tty2 linux]], false)
|
||||
modules.runit.add_service("getty-ttyS0", [[#!/bin/sh
|
||||
exec chpst -P getty 38400 ttyS0 linux]], false)
|
||||
|
||||
|
|
2
qemu.sh
2
qemu.sh
|
@ -15,4 +15,4 @@ qemu-system-x86_64 -enable-kvm -m 2048 \
|
|||
-net nic,model=virtio-net-pci \
|
||||
-net user,hostfwd=tcp:10.69.0.2:8080-:80 \
|
||||
-kernel boot/vmlinuz-virt -initrd boot/initramfs-virt \
|
||||
-append "root=/dev/sda rootfstype=squashfs modules=ext4 init=/sbin/runit-init $append" $qemuappend
|
||||
-append "root=/dev/sda rootfstype=squashfs modules=ext4 quiet init=/sbin/runit-init $append" $qemuappend
|
||||
|
|
|
@ -2,7 +2,7 @@ local utils = require("utils")
|
|||
local alpine = require("alpine")
|
||||
|
||||
local alpine_base_version = "3.16"
|
||||
local alpine_version = alpine_base_version..".0"
|
||||
local alpine_version = alpine_base_version..".3"
|
||||
local packages = {
|
||||
"alpine-baselayout",
|
||||
-- "alpine-conf",
|
||||
|
|
Loading…
Reference in a new issue