]> git.proxmox.com Git - pve-installer.git/commitdiff
allow ssh root login
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Jun 2015 09:50:24 +0000 (11:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Jun 2015 09:50:24 +0000 (11:50 +0200)
Makefile
proxinstall

index 5767ada07486aea98742170432e155aaf350263d..f651ae7698501efd969822ff8eab95dde4b5d449 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ packages: /pve/${RELEASE}/install/pve.files
        mv packages.tmp packages
 
 test.img:
-       dd if=/dev/zero of=test.img bs=1024 count=1M
+       dd if=/dev/zero of=test.img bs=2048 count=1M
 
 check: packages test.img
        G_SLICE=always-malloc ./proxinstall -t test.img
index 8405b3bc0ab4a35b2c2556686e1057f65a2628db..8116ad134f7387780e663c58a51520221bfb83ce 100755 (executable)
@@ -1214,6 +1214,9 @@ _EOD
        # file does not exist)
        write_config ('', "$targetdir/var/lib/apt/extended_states");
 
+       # allow ssh root login
+       syscmd ("sed -i 's/^PermitRootLogin.*/PermitRootLogin yes/' '$targetdir/etc/ssh/sshd_config'");
+       
        # save installer settings
        my $ucc = uc ($country);
        debconfig_set ($targetdir, <<_EOD);