Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmelange opened this issue Aug 8, 2023 · 1 comment
Open

Comments

@pmelange
Copy link
Collaborator

pmelange commented Aug 8, 2023

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
Copy link
Collaborator Author

pmelange commented Aug 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant