Fix module dependency resolution for clean builds
- Use container modules from kernel_modules stage for dependency resolution - Remove dependency on initramfs modules that haven't been copied yet - Fixes regression where clean builds had empty stage1.list - Dependency resolution now works correctly in clean build scenarios
This commit is contained in:
15
config/zinit.old/init/sshd-setup.sh
Executable file
15
config/zinit.old/init/sshd-setup.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/ash
|
||||
if [ -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||
# ensure existing file permissions
|
||||
chown root:root /etc/ssh/ssh_host_*
|
||||
chmod 600 /etc/ssh/ssh_host_*
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Setting up sshd"
|
||||
mkdir -p /run/sshd
|
||||
|
||||
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
|
||||
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
|
||||
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa -b 521
|
||||
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
|
||||
Reference in New Issue
Block a user