Compare commits

..

2 Commits

Author SHA1 Message Date
Dustin 03da29b5a6 ci: Update mqttdpms Jenkins project name
dustin/basementhud/pipeline/head This commit looks good Details
I've switched Jenkins to use a Gitea Organization Folder so it can
auto-discover repositories owned by my Gitea user.  This naturally
required the paths of existing projects to change.  Here, we're updating
the path to the *mqttdpms* project to reflect its new location.
2022-08-23 09:40:14 -05:00
Dustin 09c7277e30 Run depmod before creating rootfs image
`depmod` needs to be run by `mkrootfs.sh` so that the kernel module
dependency information is included in the SquashFS image.  Without this
information, `modprobe` cannot install kernel modules at runtime.
2022-08-23 09:38:37 -05:00
3 changed files with 6 additions and 4 deletions

4
ci/Jenkinsfile vendored
View File

@ -12,7 +12,7 @@ pipeline {
buildDiscarder logRotator(numToKeepStr: '5')
disableConcurrentBuilds()
}
triggers {
pollSCM ''
}
@ -41,7 +41,7 @@ pipeline {
}
copyArtifacts \
filter: 'aarch64/mqttdpms',
projectName: 'mqttdpms/master',
projectName: '../mqttdpms/master',
selector: lastSuccessful()
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
sh 'make rootfs initramfs'

View File

@ -17,8 +17,6 @@ mountpoint -q tmp || mount -t tmpfs tmpfs tmp
echo 'Copying kernel image to /boot/ ...' >&2
cp -a "${destdir}"/lib/modules/"${kver}"/vmlinuz \
"${destdir}"/boot/
echo 'Running depmod ...' >&2
chroot "${destdir}" depmod -a "${kver}"
echo 'Building initramfs image ...' 2>&1
chroot "${destdir}" dracut \
--no-hostonly \

View File

@ -42,6 +42,10 @@ dnf --installroot "${destdir}" install -y \
--setopt tsflags=noscripts \
kernel \
--
kver=$(rpm --root "${destdir}" -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}' kernel)
if [ ! -f "${destdir}"/lib/modules/"${kver}"/modules.dep ]; then
chroot "${destdir}" depmod -a "${kver}"
fi
cp -p \
"${srcdir}"/cmdline.txt \