Fixes to zlibs/vm to reflect others.

This commit is contained in:
parazyd 2018-03-13 12:36:17 +01:00
parent e94ba2a34d
commit fa3c7ea707
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# Copyright (c) 2016-2017 Dyne.org Foundation # Copyright (c) 2016-2018 Dyne.org Foundation
# libdevuansdk is maintained by Ivan J. <parazyd@dyne.org> # libdevuansdk is maintained by Ivan J. <parazyd@dyne.org>
# #
# This file is part of libdevuansdk # This file is part of libdevuansdk
@ -33,8 +33,6 @@ conf_print_fstab() {
[[ -n "$livesdk_version" ]] && return [[ -n "$livesdk_version" ]] && return
cat <<EOF cat <<EOF
#<file system> <mount point> <type> <options> <dump> <pass> #<file system> <mount point> <type> <options> <dump> <pass>
# rootfs
/dev/sda2 / ext4 errors=remount-ro 0 1
EOF EOF
} }

View File

@ -1,5 +1,5 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# Copyright (c) 2016-2017 Dyne.org Foundation # Copyright (c) 2016-2018 Dyne.org Foundation
# libdevuansdk is maintained by Ivan J. <parazyd@dyne.org> # libdevuansdk is maintained by Ivan J. <parazyd@dyne.org>
# #
# This file is part of libdevuansdk # This file is part of libdevuansdk
@ -31,7 +31,7 @@ vm_inject_overrides() {
#!/bin/sh #!/bin/sh
# rc.local for base images # rc.local for base images
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || dpkg-reconfigure openssh-server [ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A
exit 0 exit 0
EOF EOF
@ -40,8 +40,8 @@ EOF
print "rootfs / rootfs rw 0 0" | sudo tee ${strapdir}/etc/fstab >/dev/null print "rootfs / rootfs rw 0 0" | sudo tee ${strapdir}/etc/fstab >/dev/null
sudo sed -i ${strapdir}/etc/ssh/sshd_config \ sudo sed -i ${strapdir}/etc/ssh/sshd_config \
-e 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' \ -e 's/#PermitRootLogin .*/PermitRootLogin yes/' \
-e 's/PermitRootLogin without-password/PermitRootLogin yes/'|| zerr -e 's/PermitRootLogin .*/PermitRootLogin yes/'|| zerr
} }
vm_setup_grub() { vm_setup_grub() {