Skip to content

Commit

Permalink
chore: update mount.blacklist -> mount.ignorelist
Browse files Browse the repository at this point in the history
This was updated a while back in [1].

Changelog: Prevent secondary rootfs from being mounted by udev-extraconf.
Ticket: None

[1]. https://git.openembedded.org/openembedded-core/commit/meta/recipes-core/udev/udev-extraconf_1.1.bb?id=69e486ddb3059f80ba538e1f59c2ca8a8df0faf9

Signed-off-by: Mirza Krak <[email protected]>
  • Loading branch information
mirzak committed Jan 20, 2025
1 parent eacc927 commit 6d8e362
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ FILES:mender-update += "\
${datadir}/mender/inventory/mender-inventory-os \
${datadir}/mender/inventory/mender-inventory-rootfs-type \
${sysconfdir}/mender/artifact-verify-key.pem \
${sysconfdir}/udev/mount.blacklist.d/mender \
${sysconfdir}/udev/mount.ignorelist.d/mender \
"
FILES:mender-update:append = "${@bb.utils.contains('PACKAGECONFIG', 'modules', ' ${datadir}/mender/modules', '', d)}"

Expand Down Expand Up @@ -274,10 +274,10 @@ do_install:append() {
install -m 0444 "${MENDER_ARTIFACT_VERIFY_KEY}" ${D}${sysconfdir}/mender/artifact-verify-key.pem
fi

# Setup blacklist to ensure udev does not automatically mount Mender managed partitions
install -d ${D}${sysconfdir}/udev/mount.blacklist.d
echo ${MENDER_ROOTFS_PART_A} > ${D}${sysconfdir}/udev/mount.blacklist.d/mender
echo ${MENDER_ROOTFS_PART_B} >> ${D}${sysconfdir}/udev/mount.blacklist.d/mender
# Setup ignorelist to ensure udev does not automatically mount Mender managed partitions
install -d ${D}${sysconfdir}/udev/mount.ignorelist.d
echo ${MENDER_ROOTFS_PART_A} > ${D}${sysconfdir}/udev/mount.ignorelist.d/mender
echo ${MENDER_ROOTFS_PART_B} >> ${D}${sysconfdir}/udev/mount.ignorelist.d/mender
}

do_install:append:class-target:mender-image:mender-systemd() {
Expand Down

0 comments on commit 6d8e362

Please sign in to comment.