Skip to content

Commit 6b76cac

Browse files
committed
testing: Add test for initramfs on erofs
Signed-off-by: Alexey Gladkov <[email protected]>
1 parent f780699 commit 6b76cac

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
"partition",
149149
"partition+usr",
150150
"pipeline",
151+
"initramfs-on-erofs",
151152
"initramfs-on-squashfs",
152153
"raid1",
153154
"raid1+raid5",
@@ -164,9 +165,18 @@ jobs:
164165
- vendor: altlinux
165166
testcase: zfs-partition
166167

168+
- vendor: altlinux
169+
testcase: initramfs-on-erofs
170+
171+
- vendor: gentoo
172+
testcase: initramfs-on-erofs
173+
167174
- vendor: gentoo
168175
testcase: zfs-partition
169176

177+
- vendor: gentoo_musl
178+
testcase: initramfs-on-erofs
179+
170180
- vendor: gentoo_musl
171181
testcase: zfs-partition
172182

testing/packages-fedora

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
MAKE_INITRD_PACKAGES="make findutils udev elfutils-libelf kmod-libs zlib-ng"
55
MAKE_INITRD_PACKAGES+=" bzip2-libs libzstd xz-libs libxcrypt-compat json-c"
6-
MAKE_INITRD_PACKAGES+=" squashfs-tools"
6+
MAKE_INITRD_PACKAGES+=" squashfs-tools erofs-utils"
77

88
MAKE_INITRD_PACKAGES_DEVEL="$MAKE_INITRD_PACKAGES"
99
MAKE_INITRD_PACKAGES_DEVEL+=" gcc make automake autoconf bison flex gawk"

testing/packages-ubuntu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

44
MAKE_INITRD_PACKAGES="make udev libelf1 libkmod2 zlib1g libbz2-1.0 libzstd1"
5-
MAKE_INITRD_PACKAGES+=" liblzma5 libjson-c5 squashfs-tools"
5+
MAKE_INITRD_PACKAGES+=" liblzma5 libjson-c5 squashfs-tools erofs-utils"
66

77
MAKE_INITRD_PACKAGES_DEVEL="$MAKE_INITRD_PACKAGES bison flex bzip2"
88
MAKE_INITRD_PACKAGES_DEVEL+=" gcc make automake autoconf pkg-config udev scdoc"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# param KICKSTART_DISKS=2
2+
# param BOOT_DISKS=2
3+
# param BOOT_CMDLINE="$BOOT_CMDLINE rdacct=1 rdlog=console rd-debug-udev=1 quiet panic=0 root=LABEL=ROOT"
4+
5+
ignoredisk --drives=LABEL=SYSIMAGE
6+
clearpart --all --initlabel --disklabel=mbr
7+
8+
part /boot --size=100% --fstype=ext4 --label=BOOT
9+
part / --size=100% --fstype=ext4 --label=ROOT
10+
11+
liveimg --url=dir:///sysimage/
12+
13+
shutdown
14+
15+
%post --erroronfail --nochroot
16+
set -x
17+
18+
tee /mnt/sysimage/etc/initrd.mk.addon <<-EOF
19+
FEATURES += runtime-compressed-fs
20+
RUNTIME_BASE_LAYER = erofs
21+
EOF
22+
%end

0 commit comments

Comments
 (0)