Compare commits

..

No commits in common. "962493f352cf70ca4083a70fc41560246845b4bf" and "95a43f2c8b68c2621c5bcdb94d59c1ed364db6c6" have entirely different histories.

3 changed files with 2 additions and 11 deletions

View file

@ -2,7 +2,6 @@ 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")
add_symlink("/etc/runit/stopit", "/run/runit/stopit") add_symlink("/etc/runit/stopit", "/run/runit/stopit")
add_symlink("/etc/runit/reboot", "/run/runit/reboot")
local t = require "../utils/templater" local t = require "../utils/templater"
local function add_executable(path, script) local function add_executable(path, script)
@ -362,17 +361,9 @@ if [ -z "$VIRTUALIZATION" ]; then
fi 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" }) add_packages({ "runit", "eudev" })
modules.runit.add_service("getty-tty1", [[#!/bin/sh modules.runit.add_service("getty-tty1", [[#!/bin/sh
exec chpst -P getty 38400 tty1 linux]], false) exec chpst -P getty 38400 tty1 linux]], false)
modules.runit.add_service("getty-tty2", [[#!/bin/sh modules.runit.add_service("getty-tty2", [[#!/bin/sh
exec chpst -P getty 38400 tty2 linux]], false) exec chpst -P getty 38400 tty2 linux]], false)
modules.runit.add_service("getty-ttyS0", [[#!/bin/sh
exec chpst -P getty 38400 ttyS0 linux]], false)

View file

@ -15,4 +15,4 @@ qemu-system-x86_64 -enable-kvm -m 2048 \
-net nic,model=virtio-net-pci \ -net nic,model=virtio-net-pci \
-net user,hostfwd=tcp:10.69.0.2:8080-:80 \ -net user,hostfwd=tcp:10.69.0.2:8080-:80 \
-kernel boot/vmlinuz-virt -initrd boot/initramfs-virt \ -kernel boot/vmlinuz-virt -initrd boot/initramfs-virt \
-append "root=/dev/sda rootfstype=squashfs modules=ext4 quiet init=/sbin/runit-init $append" $qemuappend -append "root=/dev/sda rootfstype=squashfs modules=ext4 init=/sbin/runit-init $append" $qemuappend

View file

@ -2,7 +2,7 @@ local utils = require("utils")
local alpine = require("alpine") local alpine = require("alpine")
local alpine_base_version = "3.16" local alpine_base_version = "3.16"
local alpine_version = alpine_base_version..".3" local alpine_version = alpine_base_version..".0"
local packages = { local packages = {
"alpine-baselayout", "alpine-baselayout",
-- "alpine-conf", -- "alpine-conf",