Compare commits

...

5 commits

Author SHA1 Message Date
962493f352 Alpine 3.16.3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-11-17 22:29:10 -03:00
986a5cc1ee qemu.sh: quiet 2022-11-17 22:28:55 -03:00
4622625570 runit: poweroff/reboot scripts 2022-11-17 22:28:32 -03:00
88e9406963 runit: Arreglar reboot 2022-11-17 22:28:19 -03:00
320e94b40d runit: Iniciar tty en serial 2022-11-17 22:25:55 -03:00
3 changed files with 11 additions and 2 deletions

View file

@ -2,6 +2,7 @@ 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)
@ -361,9 +362,17 @@ 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 init=/sbin/runit-init $append" $qemuappend -append "root=/dev/sda rootfstype=squashfs modules=ext4 quiet 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..".0" local alpine_version = alpine_base_version..".3"
local packages = { local packages = {
"alpine-baselayout", "alpine-baselayout",
-- "alpine-conf", -- "alpine-conf",