Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit d4ff859

Browse files
authored
Merge pull request #226 from pohly/util-linux-cleanup
util-linux_%.bbappend: remove obsolete nologin workaround
2 parents 80c9701 + 00dc9d8 commit d4ff859

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

meta-refkit-core/bbappends/openembedded-core/meta/recipes-core/util-linux/util-linux_%.bbappend

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,3 @@ DEPENDS_remove_class-native_df-refkit-config = "lzo-native"
77
DEPENDS_remove_class-nativesdk_df-refkit-config = "lzo-native"
88
DEPENDS_append_class-native_df-refkit-config = " lz4-native"
99
DEPENDS_append_class-nativesdk_df-refkit-config = " lz4-native"
10-
11-
# nologin can come from two separate sources, shadow and util-linux.
12-
# Normally these do not conflict, the one from shadow goes into /sbin,
13-
# the one from util-linux goes into /usr/sbin. With usrmerge enabled,
14-
# however, /sbin is symlinked to /usr/sbin and these start conflicting.
15-
# If that happens, we make util-linux get out of the way by removing
16-
# its nologin.
17-
#
18-
# Ideally we probably should make sure first that shadow is enabled to
19-
# ensure we don't end up without any /{usr/,}sbin/nologin.
20-
21-
do_install_append_df-refkit-config () {
22-
if [ -n "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'y', '', d)}" ];
23-
then
24-
rm -f ${D}${sbindir}/nologin
25-
fi
26-
}

0 commit comments

Comments
 (0)