Commit 33365c73 authored by jan.koester's avatar jan.koester
Browse files

nas-itx: md and device mapper built in; e2fsprogs/dosfstools/gptfdisk RPMs

kernel.config: md (RAID 0/1/10/4/5/6) and the device mapper with the
targets storaged's LVM uses (snapshot, dm-raid) built in -- as modules
nothing loaded them at boot (no device alias): no /proc/mdstat, no
/dev/mapper. dm-crypt stays a module.

build-cross.sh: the disk tools (e2fsprogs, dosfstools, gptfdisk) are
part of CROSS_PACKAGES, so the RPM root has mke2fs & co.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent bae68980
Loading
Loading
Loading
Loading
+15 −6
Changes for boards/nas-itx/kernel.config: 15 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -122,13 +122,22 @@ CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_SMB_SERVER=m
CONFIG_NFSD=m
CONFIG_NFSD_V4=y
# software RAID built in (a NAS): the md core has no device alias, so as a
# module nothing loaded it at boot -- no /proc/mdstat, no /dev/md*
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID10=m
CONFIG_MD_RAID456=m
CONFIG_BLK_DEV_DM=m
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
# device mapper built in, with the targets storaged's LVM uses: linear,
# striped and error (core), snapshot, raid (dm-raid over the md levels);
# dm-crypt as a module
CONFIG_BLK_DEV_DM=y
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_RAID=y
CONFIG_DM_CRYPT=m
CONFIG_CONFIGFS_FS=m
CONFIG_TARGET_CORE=m
CONFIG_TCM_IBLOCK=m
+1 −1
Changes for build-cross.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ RPM_ARCH="${RPM_ARCH:-ppc}"
CROSS_PACKAGES="${CROSS_PACKAGES:-systempp fresh zlib zstd bzip2 libjson-c libbrotli libcmdplus libuuidp libnetplus libyaml libconfplus
    libhttppp libressl syslite sharedd adconnect storaged iscsid upsd firewalld tinyxml2 snmpdd ntpplus containerd webctl
    popt lua file libelf libsqlite3 rpm ca-certificates fenriros-release liblzma libxml2 libarchive glib2 curl
    libsolv librepo fmt toml11 libsmartcols dnf5}"
    libsolv librepo fmt toml11 libsmartcols dnf5 e2fsprogs dosfstools gptfdisk}"

PREFIX=/usr
INTERP="$PREFIX/lib/ld-linux-$PROC.so"