summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-03-06 11:58:33 +0100
committerThomas Haller <thaller@redhat.com>2014-06-30 17:42:09 +0200
commit0178d73699b95ca7ce78d457145f0c63e8191188 (patch)
tree59ed55e759a2af779ddd243c177d716dab006429 /contrib
parent0689efc7689bb7da808e0848fd855dd084b64c9d (diff)
downloadNetworkManager-0178d73699b95ca7ce78d457145f0c63e8191188.tar.gz
contrib/nm-live-vm: disable rate limiting in the journal of the VM
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fedora/nm-live-vm/nm-make-script.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/fedora/nm-live-vm/nm-make-script.sh b/contrib/fedora/nm-live-vm/nm-make-script.sh
index 86ac67fe0a..ed3e7c9108 100755
--- a/contrib/fedora/nm-live-vm/nm-make-script.sh
+++ b/contrib/fedora/nm-live-vm/nm-make-script.sh
@@ -51,11 +51,17 @@ EOF
/bin/systemctl enable NetworkManager.service || exit 1
/bin/systemctl enable sshd.service || exit 1
+# allow login for root via SSH, without password!!
sed -e 's/^#\?\(PermitRootLogin *\).*/\1yes/' \
-e 's/^#\?\(PermitEmptyPasswords *\).*/\1yes/' \
-i /etc/ssh/sshd_config
+# disable rate limiting of the journal
+sed -e 's/^#\?\(RateLimitInterval *= *\).*/\10/' \
+ -e 's/^#\?\(RateLimitBurst *= *\).*/\10/' \
+ -i /etc/systemd/journald.conf
+
mkdir /mnt/sda1
-echo "/dev/sda1 /mnt/sda1 vfat defaults 1 2" >> /etc/fstab
+echo "/dev/sda1 /mnt/sda1 vfat defaults 0 0" >> /etc/fstab
git gc