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