mkinitcpio-dropbear-pacman-.../dropbear_install.patch

13 lines
502 B
Diff
Raw Normal View History

2023-11-03 01:19:50 +01:00
--- /usr/lib/initcpio/install/dropbear 2023-09-12 11:32:10.000000000 +0000
+++ /usr/lib/initcpio/install/dropbear 2023-11-02 22:59:29.226666775 +0000
@@ -86,6 +86,9 @@
add_dir "/root/.ssh"
cat /etc/dropbear/root_key > "${BUILDROOT}"/root/.ssh/authorized_keys
+ groupadd --prefix "${BUILDROOT}" --system -g 0 root
+ useradd --prefix "${BUILDROOT}" --system -g root -u 0 -M -d /root -s /bin/sh root
+
add_full_dir "/etc/dropbear"
add_file "/lib/libnss_files.so.2"
add_dir "/var/run"