Skip to content
Snippets Groups Projects
Commit 4f3c2b8b authored by Alberto Colla's avatar Alberto Colla
Browse files

Update curtin_userdata

parent 218234e1
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,11 @@ late_commands:
{{endif}}
user_00_rootpass: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo root:'$6$hNEKeR8Pw1zWjY6f$RkLBGxiXHDRxAQV.2Hdipzh98nwE54Acg7Kzabhg9m98FUysUDeweOZTz4BGLgZmbvO/9Rhx7KxJEPEGVZElb.' | /usr/sbin/chpasswd -e"]
user_01_update_install: ["curtin", "in-target", "--", "apt-get", "update", "--quiet"]
limits_01_add: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo '* soft nofile 1048576' >> /etc/security/limits.conf ; /bin/echo '* hard nofile 1048576' >> /etc/security/limits.conf"]
#sysctl_01_add: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_queued_events = 1048576' >> /etc/sysctl.conf "]
#sysctl_02_add: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_user_instances = 2048' >> /etc/sysctl.conf "]
#sysctl_03_add: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_user_watches = 1048576' >> /etc/sysctl.conf "]
#sysctl_04_add: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'vm.max_map_count = 262144' >> /etc/sysctl.conf "]
user_02_install: ["curtin", "in-target", "--", "apt-get", "-y", "install", "screen"]
user_03_install: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo -e '#!/bin/bash \n /usr/bin/lxc profile device add default kvm unix-char path=/dev/kvm;rm $0' > /etc/rc.local"]
user_04_istall: ["curtin", "in-target", "--", "sh", "-c", "/bin/chmod +x /etc/rc.local"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment