Append user information to passwd (#396)

make_etc_passwd() is overwriting user information `passwd` from earlier hooks.

Signed-off-by: Gavin Scurr <gavin@scurr.me>
Closes #N/A
Issue #N/A
pull/412/head
GΛVĪN 4 years ago committed by GitHub
parent 570560d67c
commit 81bb1f5900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/zfs-utils/zfs-utils.initcpio.zfsencryptssh.install

@ -1,7 +1,7 @@
#!/bin/bash
make_etc_passwd() {
echo 'root:x:0:0:root:/root:/bin/zfsdecrypt_shell' > "${BUILDROOT}"/etc/passwd
echo 'root:x:0:0:root:/root:/bin/zfsdecrypt_shell' >> "${BUILDROOT}"/etc/passwd
echo '/bin/zfsdecrypt_shell' > "${BUILDROOT}"/etc/shells
}

Loading…
Cancel
Save