mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-01 15:51:44 +00:00
Improve alpine initrd output (#493)
This commit is contained in:
parent
8cd13c03c8
commit
0bf3826ad0
@ -1,7 +1,7 @@
|
||||
packages:
|
||||
- name: "alpine"
|
||||
category: "distro-kernel"
|
||||
version: "6.1.56-4"
|
||||
version: "6.1.56-5"
|
||||
description: "Provides kernel and custom initrd for alpine"
|
||||
labels:
|
||||
autobump.strategy: "custom"
|
||||
@ -14,7 +14,7 @@ packages:
|
||||
package.version: "6.1.56"
|
||||
- name: "alpine-rpi"
|
||||
category: "distro-kernel"
|
||||
version: "6.1.55-4"
|
||||
version: "6.1.55-5"
|
||||
description: "Provides kernel and custom initrd for alpine"
|
||||
labels:
|
||||
autobump.strategy: "custom"
|
||||
|
@ -438,6 +438,9 @@ if grep -q cdroot /proc/cmdline || grep -q netboot /proc/cmdline;then
|
||||
# stop udevd, will be relaunched by openrc
|
||||
udevadm control --exit
|
||||
|
||||
# hide kernel messages from now on
|
||||
dmesg -n 1
|
||||
|
||||
# shellcheck disable=SC2093
|
||||
exec switch_root "$sysroot" "$INIT"
|
||||
echo "initramfs emergency recovery shell launched"
|
||||
@ -494,7 +497,7 @@ if [ -r "$sysroot"/etc/apk/arch ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# TODO: Use this at the start to set an aprox time for the initramfs?
|
||||
# use swclock if no RTC is found
|
||||
if rtc_exists || [ "$(uname -m)" = "s390x" ]; then
|
||||
rc_add hwclock boot
|
||||
@ -534,7 +537,8 @@ fi
|
||||
rd_break pre-switch
|
||||
# stop udevd, will be relaunched by openrc
|
||||
udevadm control --exit
|
||||
|
||||
# hide kernel messages from now on
|
||||
dmesg -n 1
|
||||
# switch over to new root
|
||||
echo ""
|
||||
# shellcheck disable=SC2093
|
||||
|
Loading…
Reference in New Issue
Block a user