mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-25 11:13:45 +00:00
Improve alpine initrd boot media (#806)
This commit is contained in:
parent
3a9b6746ac
commit
9065e7aacf
@ -1,7 +1,7 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "alpine"
|
- name: "alpine"
|
||||||
category: "initrd"
|
category: "initrd"
|
||||||
version: "3.8.1+2"
|
version: "3.8.1+3"
|
||||||
description: "Provides custom initrd scripts for alpine"
|
description: "Provides custom initrd scripts for alpine"
|
||||||
# This syncs with the alpine version at https://gitlab.alpinelinux.org/alpine/mkinitfs/-/blob/master/initramfs-init.in?ref_type=heads
|
# This syncs with the alpine version at https://gitlab.alpinelinux.org/alpine/mkinitfs/-/blob/master/initramfs-init.in?ref_type=heads
|
||||||
# any changes to the initramfs-init.in file should be looked at and backported if necessary
|
# any changes to the initramfs-init.in file should be looked at and backported if necessary
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION=3.8.1-kairos1
|
VERSION=3.8.1-kairos2
|
||||||
INIT=/sbin/init
|
INIT=/sbin/init
|
||||||
sysroot="$ROOT"/sysroot
|
sysroot="$ROOT"/sysroot
|
||||||
|
|
||||||
@ -393,19 +393,19 @@ fi
|
|||||||
# Path for booting from livecd
|
# Path for booting from livecd
|
||||||
if grep -q cdroot /proc/cmdline ;then
|
if grep -q cdroot /proc/cmdline ;then
|
||||||
rd_break pre-livecd
|
rd_break pre-livecd
|
||||||
echo "Mounting LiveCD"
|
echo "Mounting Live Media"
|
||||||
sync
|
sync
|
||||||
# Create mountpoints
|
# Create mountpoints
|
||||||
ebegin "Create mountpoints"
|
ebegin "Create mountpoints"
|
||||||
mkdir -p /media/root-ro /media/root-rw /run/rootfsbase $sysroot/media/root-ro $sysroot/media/root-rw $sysroot/run/rootfsbase
|
mkdir -p /media/root-ro /media/root-rw /run/rootfsbase $sysroot/media/root-ro $sysroot/media/root-rw $sysroot/run/rootfsbase
|
||||||
eend $?
|
eend $?
|
||||||
# Between udev starting, we loading the modules and the cdrom appearing sometimes there is a delay, so lets wait a bit here
|
# Between udev starting, we loading the modules and the cdrom appearing sometimes there is a delay, so lets wait a bit here
|
||||||
ebegin "Waiting for cdrom to be available"
|
ebegin "Waiting for Live Media to be available"
|
||||||
retry 10 test -e /dev/sr0
|
retry 10 test -e /dev/disk/by-label/COS_LIVE
|
||||||
eend
|
eend
|
||||||
# Mount read-only livecd
|
# Mount read-only livecd
|
||||||
ebegin "Mount LiveCD RO"
|
ebegin "Mount Live Media RO"
|
||||||
retry 10 mount /dev/sr0 /media/root-ro
|
retry 10 mount /dev/disk/by-label/COS_LIVE /media/root-ro
|
||||||
eend $?
|
eend $?
|
||||||
sync
|
sync
|
||||||
# Mount squashfs into loop device
|
# Mount squashfs into loop device
|
||||||
|
Loading…
Reference in New Issue
Block a user