freifunk-berlin / falter-packages

Sources for the falter-packagefeed
GNU General Public License v3.0
13 stars 17 forks source link

falter-berlin-admin-keys: explicitly create directory /etc/dropbear #398

Open pmelange opened 1 year ago

pmelange commented 1 year ago

When building from the openwrt source directly, I got the following errors...

cp -fpR /home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86 /home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root.orig-x86
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent
grep: /etc/dropbear/authorized_keys: No such file or directory
/home/pmelange/src/openwrt/build_dir/target-x86_64_musl/root-x86/tmp/falter-berlin-admin-keys/register_keys.sh: 11: cannot create /etc/dropbear/authorized_keys: Directory nonexistent postinst script ./usr/lib/opkg/info/falter-berlin-admin-keys.postinst has failed with exit code 2 make[2]: *** [package/Makefile:73: package/install] Error 1

pmelange commented 1 year ago

It could also be that it's trying to write directly to the build system's /etc/dropbear, which is very wrong. I believe there is a variable such as IPKG_INSTROOT which should be put before the directory.