images/qemuarm/glibc/core-image-full-cmdline: Changes to /etc/group: --- /etc/group +++ /etc/group @@ -38,14 +38,14 @@ games:x:60: shutdown:x:70: users:x:100: -sgx:x:987: -wheel:x:988: -systemd-timesync:x:989: -systemd-resolve:x:990: -systemd-network:x:991: -systemd-journal:x:992: -systemd-bus-proxy:x:993: -sshd:x:994: +wheel:x:987: +systemd-timesync:x:988: +systemd-resolve:x:989: +systemd-network:x:990: +systemd-journal:x:991: +systemd-bus-proxy:x:992: +sshd:x:993: +sgx:x:994: render:x:995: messagebus:x:996: crontab:x:997: -- images/qemuarm/glibc/core-image-full-cmdline: Changes to /etc/passwd: --- /etc/passwd +++ /etc/passwd @@ -15,11 +15,11 @@ list:x:38:38:Mailing List Manager:/var/list:/sbin/nologin irc:x:39:39:ircd:/run/ircd:/sbin/nologin _apt:x:42:65534::/nonexistent:/sbin/nologin -systemd-timesync:x:992:989::/:/sbin/nologin -systemd-resolve:x:993:990::/:/sbin/nologin -systemd-network:x:994:991::/:/sbin/nologin -systemd-bus-proxy:x:995:993::/:/sbin/nologin -sshd:x:996:994::/var/run/sshd:/bin/false +systemd-timesync:x:992:988::/:/sbin/nologin +systemd-resolve:x:993:989::/:/sbin/nologin +systemd-network:x:994:990::/:/sbin/nologin +systemd-bus-proxy:x:995:992::/:/sbin/nologin +sshd:x:996:993::/var/run/sshd:/bin/false messagebus:x:997:996::/var/lib/dbus:/bin/false rpcuser:x:998:998::/var/lib/nfs:/bin/false rpc:x:999:999::/:/bin/false -- images/qemuarm/glibc/core-image-sato-sdk: Changes to /etc/group: --- /etc/group +++ /etc/group @@ -38,19 +38,19 @@ games:x:60: shutdown:x:70: users:x:100: -sgx:x:986: -wheel:x:987: -pulse:x:988:pulse -systemd-timesync:x:989: -systemd-resolve:x:990: -systemd-network:x:991: -systemd-journal:x:992: -avahi:x:993: -systemd-bus-proxy:x:994: -rpc:x:995: -sshd:x:996: -messagebus:x:997: -crontab:x:998: +wheel:x:986: +pulse:x:987:pulse +systemd-timesync:x:988: +systemd-resolve:x:989: +systemd-network:x:990: +systemd-journal:x:991: +avahi:x:992: +systemd-bus-proxy:x:993: +rpc:x:994: +sshd:x:995: +messagebus:x:996: +crontab:x:997: +sgx:x:998: render:x:999: tracing:x:1000: nogroup:x:65534: -- images/qemuarm/glibc/core-image-sato-sdk: Changes to /etc/passwd: --- /etc/passwd +++ /etc/passwd @@ -15,13 +15,13 @@ list:x:38:38:Mailing List Manager:/var/list:/sbin/nologin irc:x:39:39:ircd:/run/ircd:/sbin/nologin _apt:x:42:65534::/nonexistent:/sbin/nologin -pulse:x:991:988::/var/run/pulse:/bin/false -systemd-timesync:x:992:989::/:/sbin/nologin -systemd-resolve:x:993:990::/:/sbin/nologin -systemd-network:x:994:991::/:/sbin/nologin -avahi:x:995:993::/run/avahi-daemon:/bin/false -systemd-bus-proxy:x:996:994::/:/sbin/nologin -rpc:x:997:995::/:/bin/false -sshd:x:998:996::/var/run/sshd:/bin/false -messagebus:x:999:997::/var/lib/dbus:/bin/false +pulse:x:991:987::/var/run/pulse:/bin/false +systemd-timesync:x:992:988::/:/sbin/nologin +systemd-resolve:x:993:989::/:/sbin/nologin +systemd-network:x:994:990::/:/sbin/nologin +avahi:x:995:992::/run/avahi-daemon:/bin/false +systemd-bus-proxy:x:996:993::/:/sbin/nologin +rpc:x:997:994::/:/bin/false +sshd:x:998:995::/var/run/sshd:/bin/false +messagebus:x:999:996::/var/lib/dbus:/bin/false nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin -- images/qemuarm/glibc/core-image-sato: Changes to /etc/group: --- /etc/group +++ /etc/group @@ -38,16 +38,16 @@ games:x:60: shutdown:x:70: users:x:100: -sgx:x:988: -wheel:x:989: -pulse:x:990:pulse -systemd-timesync:x:991: -systemd-resolve:x:992: -systemd-network:x:993: -systemd-journal:x:994: -systemd-bus-proxy:x:995: -rpc:x:996: -avahi:x:997: -messagebus:x:998: +wheel:x:988: +pulse:x:989:pulse +systemd-timesync:x:990: +systemd-resolve:x:991: +systemd-network:x:992: +systemd-journal:x:993: +systemd-bus-proxy:x:994: +rpc:x:995: +avahi:x:996: +messagebus:x:997: +sgx:x:998: render:x:999: nogroup:x:65534: -- images/qemuarm/glibc/core-image-sato: Changes to /etc/passwd: --- /etc/passwd +++ /etc/passwd @@ -15,12 +15,12 @@ list:x:38:38:Mailing List Manager:/var/list:/sbin/nologin irc:x:39:39:ircd:/run/ircd:/sbin/nologin _apt:x:42:65534::/nonexistent:/sbin/nologin -pulse:x:992:990::/var/run/pulse:/bin/false -systemd-timesync:x:993:991::/:/sbin/nologin -systemd-resolve:x:994:992::/:/sbin/nologin -systemd-network:x:995:993::/:/sbin/nologin -systemd-bus-proxy:x:996:995::/:/sbin/nologin -rpc:x:997:996::/:/bin/false -avahi:x:998:997::/run/avahi-daemon:/bin/false -messagebus:x:999:998::/var/lib/dbus:/bin/false +pulse:x:992:989::/var/run/pulse:/bin/false +systemd-timesync:x:993:990::/:/sbin/nologin +systemd-resolve:x:994:991::/:/sbin/nologin +systemd-network:x:995:992::/:/sbin/nologin +systemd-bus-proxy:x:996:994::/:/sbin/nologin +rpc:x:997:995::/:/bin/false +avahi:x:998:996::/run/avahi-daemon:/bin/false +messagebus:x:999:997::/var/lib/dbus:/bin/false nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin -- Changes to packages/cortexa15t2hf-neon-poky-linux-gnueabi/harfbuzz (sysroot): /usr/lib/libharfbuzz-cairo.so.0 changed symlink target from libharfbuzz-cairo.so.0.60700.0 to libharfbuzz-cairo.so.0.60701.0 /usr/lib/libharfbuzz-gobject.so.0 changed symlink target from libharfbuzz-gobject.so.0.60700.0 to libharfbuzz-gobject.so.0.60701.0 /usr/lib/libharfbuzz-icu.so.0 changed symlink target from libharfbuzz-icu.so.0.60700.0 to libharfbuzz-icu.so.0.60701.0 /usr/lib/libharfbuzz.so.0 changed symlink target from libharfbuzz.so.0.60700.0 to libharfbuzz.so.0.60701.0 /usr/lib/libharfbuzz-subset.so.0 changed symlink target from libharfbuzz-subset.so.0.60700.0 to libharfbuzz-subset.so.0.60701.0 /usr/lib/libharfbuzz-cairo.so.0.60700.0 moved to /usr/lib/libharfbuzz-cairo.so.0.60701.0 /usr/lib/libharfbuzz-gobject.so.0.60700.0 moved to /usr/lib/libharfbuzz-gobject.so.0.60701.0 /usr/lib/libharfbuzz-icu.so.0.60700.0 moved to /usr/lib/libharfbuzz-icu.so.0.60701.0 /usr/lib/libharfbuzz.so.0.60700.0 moved to /usr/lib/libharfbuzz.so.0.60701.0 /usr/lib/libharfbuzz-subset.so.0.60700.0 moved to /usr/lib/libharfbuzz-subset.so.0.60701.0 packages/cortexa15t2hf-neon-poky-linux-gnueabi/systemd/systemd: latest.pkg_preinst changed from "#!/bin/sh set -e bbnote () { echo "NOTE: $*" } bbwarn () { echo "WARNING: $*" } bbfatal () { echo "ERROR: $*" exit 1 } perform_groupadd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupadd with [$opts]" local groupname=`echo "$opts" | awk '{ print $NF }'` local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then bbfatal "systemd: groupadd command did not succeed." fi else bbnote "systemd: group $groupname already exists, not re-creating it" fi } perform_useradd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing useradd with [$opts]" local username=`echo "$opts" | awk '{ print $NF }'` local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO useradd \$opts\" || true user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then bbfatal "systemd: useradd command did not succeed." fi else bbnote "systemd: user $username already exists, not re-creating it" fi } perform_groupmems () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupmems with [$opts]" local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'` local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'` bbnote "systemd: Running groupmems command with group $groupname and user $username" local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then bbfatal "systemd: groupmems command did not succeed." fi else bbnote "systemd: group $groupname already contains $username, not re-adding it" fi } OPT="" SYSROOT="" if test "x$D" != "x"; then # Installing into a sysroot SYSROOT="$D" OPT="--root $D" # Make sure login.defs is there, this is to make debian package backend work # correctly while doing rootfs. # The problem here is that if /etc/login.defs is treated as a config file for # shadow package, then while performing preinsts for packages that depend on # shadow, there might only be /etc/login.def.dpkg-new there in root filesystem. if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then cp $D/etc/login.defs.dpkg-new $D/etc/login.defs fi # user/group lookups should match useradd/groupadd --root export PSEUDO_PASSWD="$SYSROOT" fi # If we're not doing a special SSTATE/SYSROOT install # then set the values, otherwise use the environment if test "x$UA_SYSROOT" = "x"; then # Installing onto a target # Add groups and users defined only for this package GROUPADD_PARAM="-r systemd-journal; " USERADD_PARAM=" --system -d / -M --shell /sbin/nologin systemd-network; --system -d / -M --shell /sbin/nologin systemd-resolve; --system -d / -M --shell /sbin/nologin systemd-timesync;" GROUPMEMS_PARAM="" fi # Perform group additions first, since user additions may depend # on these groups existing if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupadd commands..." # Invoke multiple instances of groupadd for parameter lists # separated by ';' opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupadd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running useradd commands..." # Invoke multiple instances of useradd for parameter lists # separated by ';' opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_useradd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupmems commands..." # Invoke multiple instances of groupmems for parameter lists # separated by ';' opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupmems "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi " to "#!/bin/sh set -e bbnote () { echo "NOTE: $*" } bbwarn () { echo "WARNING: $*" } bbfatal () { echo "ERROR: $*" exit 1 } perform_groupadd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupadd with [$opts]" local groupname=`echo "$opts" | awk '{ print $NF }'` local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then bbfatal "systemd: groupadd command did not succeed." fi else bbnote "systemd: group $groupname already exists, not re-creating it" fi } perform_useradd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing useradd with [$opts]" local username=`echo "$opts" | awk '{ print $NF }'` local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO useradd \$opts\" || true user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then bbfatal "systemd: useradd command did not succeed." fi else bbnote "systemd: user $username already exists, not re-creating it" fi } perform_groupmems () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupmems with [$opts]" local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'` local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'` bbnote "systemd: Running groupmems command with group $groupname and user $username" local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then bbfatal "systemd: groupmems command did not succeed." fi else bbnote "systemd: group $groupname already contains $username, not re-adding it" fi } OPT="" SYSROOT="" if test "x$D" != "x"; then # Installing into a sysroot SYSROOT="$D" OPT="--root $D" # Make sure login.defs is there, this is to make debian package backend work # correctly while doing rootfs. # The problem here is that if /etc/login.defs is treated as a config file for # shadow package, then while performing preinsts for packages that depend on # shadow, there might only be /etc/login.def.dpkg-new there in root filesystem. if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then cp $D/etc/login.defs.dpkg-new $D/etc/login.defs fi # user/group lookups should match useradd/groupadd --root export PSEUDO_PASSWD="$SYSROOT" fi # If we're not doing a special SSTATE/SYSROOT install # then set the values, otherwise use the environment if test "x$UA_SYSROOT" = "x"; then # Installing onto a target # Add groups and users defined only for this package GROUPADD_PARAM="-r systemd-journal; " USERADD_PARAM=" --system -d / -M --shell /sbin/nologin systemd-network; --system -d / -M --shell /sbin/nologin systemd-resolve; --system -d / -M --shell /sbin/nologin systemd-timesync; " GROUPMEMS_PARAM="" fi # Perform group additions first, since user additions may depend # on these groups existing if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupadd commands..." # Invoke multiple instances of groupadd for parameter lists # separated by ';' opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupadd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running useradd commands..." # Invoke multiple instances of useradd for parameter lists # separated by ';' opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_useradd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupmems commands..." # Invoke multiple instances of groupmems for parameter lists # separated by ';' opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupmems "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi " packages/cortexa15t2hf-neon-poky-linux-gnueabi/systemd/udev: latest.pkg_preinst changed from "#!/bin/sh set -e bbnote () { echo "NOTE: $*" } bbwarn () { echo "WARNING: $*" } bbfatal () { echo "ERROR: $*" exit 1 } perform_groupadd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupadd with [$opts]" local groupname=`echo "$opts" | awk '{ print $NF }'` local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then bbfatal "systemd: groupadd command did not succeed." fi else bbnote "systemd: group $groupname already exists, not re-creating it" fi } perform_useradd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing useradd with [$opts]" local username=`echo "$opts" | awk '{ print $NF }'` local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO useradd \$opts\" || true user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then bbfatal "systemd: useradd command did not succeed." fi else bbnote "systemd: user $username already exists, not re-creating it" fi } perform_groupmems () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupmems with [$opts]" local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'` local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'` bbnote "systemd: Running groupmems command with group $groupname and user $username" local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then bbfatal "systemd: groupmems command did not succeed." fi else bbnote "systemd: group $groupname already contains $username, not re-adding it" fi } OPT="" SYSROOT="" if test "x$D" != "x"; then # Installing into a sysroot SYSROOT="$D" OPT="--root $D" # Make sure login.defs is there, this is to make debian package backend work # correctly while doing rootfs. # The problem here is that if /etc/login.defs is treated as a config file for # shadow package, then while performing preinsts for packages that depend on # shadow, there might only be /etc/login.def.dpkg-new there in root filesystem. if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then cp $D/etc/login.defs.dpkg-new $D/etc/login.defs fi # user/group lookups should match useradd/groupadd --root export PSEUDO_PASSWD="$SYSROOT" fi # If we're not doing a special SSTATE/SYSROOT install # then set the values, otherwise use the environment if test "x$UA_SYSROOT" = "x"; then # Installing onto a target # Add groups and users defined only for this package GROUPADD_PARAM="-r render" USERADD_PARAM="" GROUPMEMS_PARAM="" fi # Perform group additions first, since user additions may depend # on these groups existing if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupadd commands..." # Invoke multiple instances of groupadd for parameter lists # separated by ';' opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupadd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running useradd commands..." # Invoke multiple instances of useradd for parameter lists # separated by ';' opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_useradd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupmems commands..." # Invoke multiple instances of groupmems for parameter lists # separated by ';' opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupmems "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi " to "#!/bin/sh set -e bbnote () { echo "NOTE: $*" } bbwarn () { echo "WARNING: $*" } bbfatal () { echo "ERROR: $*" exit 1 } perform_groupadd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupadd with [$opts]" local groupname=`echo "$opts" | awk '{ print $NF }'` local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" if test "x$group_exists" = "x"; then bbfatal "systemd: groupadd command did not succeed." fi else bbnote "systemd: group $groupname already exists, not re-creating it" fi } perform_useradd () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing useradd with [$opts]" local username=`echo "$opts" | awk '{ print $NF }'` local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO useradd \$opts\" || true user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" if test "x$user_exists" = "x"; then bbfatal "systemd: useradd command did not succeed." fi else bbnote "systemd: user $username already exists, not re-creating it" fi } perform_groupmems () { local rootdir="$1" local opts="$2" bbnote "systemd: Performing groupmems with [$opts]" local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'` local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'` bbnote "systemd: Running groupmems command with group $groupname and user $username" local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" if test "x$mem_exists" = "x"; then bbfatal "systemd: groupmems command did not succeed." fi else bbnote "systemd: group $groupname already contains $username, not re-adding it" fi } OPT="" SYSROOT="" if test "x$D" != "x"; then # Installing into a sysroot SYSROOT="$D" OPT="--root $D" # Make sure login.defs is there, this is to make debian package backend work # correctly while doing rootfs. # The problem here is that if /etc/login.defs is treated as a config file for # shadow package, then while performing preinsts for packages that depend on # shadow, there might only be /etc/login.def.dpkg-new there in root filesystem. if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then cp $D/etc/login.defs.dpkg-new $D/etc/login.defs fi # user/group lookups should match useradd/groupadd --root export PSEUDO_PASSWD="$SYSROOT" fi # If we're not doing a special SSTATE/SYSROOT install # then set the values, otherwise use the environment if test "x$UA_SYSROOT" = "x"; then # Installing onto a target # Add groups and users defined only for this package GROUPADD_PARAM="-r render;-r sgx;" USERADD_PARAM="" GROUPMEMS_PARAM="" fi # Perform group additions first, since user additions may depend # on these groups existing if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupadd commands..." # Invoke multiple instances of groupadd for parameter lists # separated by ';' opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupadd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running useradd commands..." # Invoke multiple instances of useradd for parameter lists # separated by ';' opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_useradd "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then echo "Running groupmems commands..." # Invoke multiple instances of groupmems for parameter lists # separated by ';' opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` while test "x$opts" != "x"; do perform_groupmems "$SYSROOT" "$OPT $opts" if test "x$opts" = "x$remaining"; then break fi opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` done fi " Changes to packages/x86_64-linux/docbook-xml-dtd4-native (sysroot): /usr/share/xml/docbook/schema/dtd/4.1.2/calstblx.dtd changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.1.2/dbcentx.mod changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.1.2/dbhierx.mod changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.1.2/dbnotnx.mod changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.1.2/dbpoolx.mod changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.1.2/docbookx.dtd changed permissions from rw-r--r-- to rwxr--r-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamsa.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamsb.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamsc.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamsn.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamso.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isoamsr.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isobox.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isocyr1.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isocyr2.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isodia.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isogrk1.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isogrk2.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isogrk3.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isogrk4.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isolat1.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isolat2.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isonum.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isopub.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.4/ent/isotech.ent changed permissions from rw-r--r-- to rw-r-xr-- /usr/share/xml/docbook/schema/dtd/4.0 was removed /usr/share/xml/docbook/schema/dtd/4.0/40chg.txt was removed /usr/share/xml/docbook/schema/dtd/4.0/calstblx.dtd was removed /usr/share/xml/docbook/schema/dtd/4.0/catalog.xml was removed /usr/share/xml/docbook/schema/dtd/4.0/dbcentx.mod was removed /usr/share/xml/docbook/schema/dtd/4.0/dbgenent.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/dbhierx.mod was removed /usr/share/xml/docbook/schema/dtd/4.0/dbnotnx.mod was removed /usr/share/xml/docbook/schema/dtd/4.0/dbpoolx.mod was removed /usr/share/xml/docbook/schema/dtd/4.0/docbookx.dtd was removed /usr/share/xml/docbook/schema/dtd/4.0/ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amsa.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amsb.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amsc.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amsn.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amso.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-amsr.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-box.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-cyr1.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-cyr2.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-dia.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-grk1.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-grk2.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-grk3.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-grk4.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-lat1.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-lat2.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-num.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-pub.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/ent/iso-tech.ent was removed /usr/share/xml/docbook/schema/dtd/4.0/readme.txt was removed /usr/share/xml/docbook/schema/dtd/4.0/soextblx.dtd was removed