1
0
Fork 0

Organize code

This commit is contained in:
Braiden Vasco 2017-07-03 11:47:46 +00:00
parent 4c098c9169
commit cbaa419872

View file

@ -286,7 +286,6 @@ EOF
apply_patches "$BASE_DIR/patches/02"
install -m 644 files/regenerate_ssh_host_keys.service "$ROOTFS_DIR/lib/systemd/system/"
install -d "$ROOTFS_DIR/etc/systemd/system/rc-local.service.d"
install -m 644 files/ttyoutput.conf "$ROOTFS_DIR/etc/systemd/system/rc-local.service.d/"
install -m 644 files/50raspi "$ROOTFS_DIR/etc/apt/apt.conf.d/"
@ -295,7 +294,6 @@ install -m 644 files/console-setup "$ROOTFS_DIR/etc/default/"
chroot_rootfs << EOF
systemctl disable hwclock.sh
systemctl disable rpcbind
systemctl enable regenerate_ssh_host_keys
EOF
chroot_rootfs << EOF
@ -306,6 +304,13 @@ chroot_rootfs << EOF
setupcon --force --save-only -v
EOF
##
# ?????
#
install -m 644 files/regenerate_ssh_host_keys.service "$ROOTFS_DIR/lib/systemd/system/"
chroot_rootfs 'systemctl enable regenerate_ssh_host_keys'
rm -f "$ROOTFS_DIR/etc/ssh/ssh_host_*_key*"
##