]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Add basic group file and make NSS calls working. Fixes 'specified group "xyz" unknown...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 28 Jun 2015 13:12:15 +0000 (15:12 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 28 Jun 2015 13:12:15 +0000 (15:12 +0200)
mod-udev.sh

index 147b070b3dfe7759ee6cadc07ea453a28b401203..30114cdca3a13c2cf7a19d503ce3f8cf6d5a2447 100644 (file)
@@ -58,6 +58,16 @@ initrd_gen_udev() {
                fi
        done
 
+       # basic group file
+       local _lib
+       inst /etc/nsswitch.conf /etc/nsswitch.conf
+       for _lib in $(get_libdir LIBDIR); do
+               if (ls /$_lib/libnss_files*.so* > /dev/null 2>&1); then
+                       inst_exec /$_lib/libnss_files*.so* /$_lib/
+               fi
+       done
+       awk -F: ' { if ($3 < 1000) { print $1":"$2":"$3":" } } ' /etc/group > $DESTDIR/etc/group
+
        # blkid installed by mod-blkid
        if ! is_yes "$USE_BLKID"; then
                warn "BLKID support missing"
This page took 0.263616 seconds and 4 git commands to generate.