summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-27 14:35:05 +0200
committerroot2021-07-27 14:35:05 +0200
commit001ec398728afacd1e639c83fa7eea9dba091fc1 (patch)
tree444d51f15e5744baad0d3b9a5533fd7bfb23a549 /core/rootfs
parent[dhcpc-busybox] Fix paths, extglob (diff)
downloadmltk-001ec398728afacd1e639c83fa7eea9dba091fc1.tar.gz
mltk-001ec398728afacd1e639c83fa7eea9dba091fc1.tar.xz
mltk-001ec398728afacd1e639c83fa7eea9dba091fc1.zip
useradd.inc: Rewrite helper once again
Diffstat (limited to 'core/rootfs')
-rw-r--r--core/rootfs/rootfs-stage32/module.build11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/rootfs/rootfs-stage32/module.build b/core/rootfs/rootfs-stage32/module.build
index c7190586..0702ceb0 100644
--- a/core/rootfs/rootfs-stage32/module.build
+++ b/core/rootfs/rootfs-stage32/module.build
@@ -90,16 +90,13 @@ post_copy() {
# link /etc/mtab, needed for systemd
[ ! -e "${TARGET_BUILD_DIR}/etc/mtab" ] && ln -s "/proc/self/mounts" "${TARGET_BUILD_DIR}/etc/mtab"
- # passwd, group, shadow
- init_users_and_groups
-
# quick fix for missing group in /etc/group
- add_group "lock"
- add_group "nogroup" 65534
- USERID=65534 GROUPID=65534 add_user "nobody"
+ groupadd "lock"
+ groupadd --gid 65534 "nogroup"
+ useradd --uid 65534 --gid 65534 "nobody"
# setup root account
- PASSWORD= USER=root add_user
+ useradd --password "" --uid 0 --gid 0 root
mkdir -p "${TARGET_BUILD_DIR}/root"
sed -i -r 's/^blacklist.*pcspkr/#&/g' "$TARGET_BUILD_DIR/etc/modprobe.d/blacklist.conf"