]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-archlinux.in: Add pacman keyring initialization back
authorAlexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Wed, 25 Jun 2014 04:52:20 +0000 (12:52 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 27 Jun 2014 17:03:57 +0000 (13:03 -0400)
Shuffle around usage text a bit and add missing -d while there.

Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-archlinux.in

index 6f3ce2e0364d140728cb0c0a423c7dc15d62d684..a95564b16b81378596249867c98afe54b5bd0cc8 100644 (file)
@@ -102,6 +102,9 @@ sed -e 's/^ConditionPathExists=/# ConditionPathExists=/' \
     -e 's/After=dev-%i.device/After=/' \
     < /lib/systemd/system/getty\@.service \
     > /etc/systemd/system/getty\@.service
+# initialize pacman keyring
+pacman-key --init
+pacman-key --populate archlinux
 EOF
     # enable getty on active ttys
     nttys=$(grep lxc.tty ${config_path}/config | cut -d= -f 2 | tr -d "[:blank:]")
@@ -169,8 +172,10 @@ install_arch() {
 usage() {
     cat <<EOF
 usage:
-    ${1} -n|--name=<container_name> [-p|--path=<path>] [-a|--arch=<arch of the container>] [-r|--root_password=<root password>]
-        [-P|--packages=<pkg1,pkg2,...>] [-e|--enable_units=unit1,unit2...] [-c|--config=<pacman config path>] [-h|--help]
+    ${1} -n|--name=<container_name> [-p|--path=<path>] [-a|--arch=<arch of the container>]
+        [-r|--root_password=<root password>] [-P|--packages=<pkg1,pkg2,...>]
+        [-e|--enable_units=unit1,unit2...] [-d|--disable_units=unit1,unit2...]
+        [-c|--config=<pacman config path>] [-h|--help]
 
 Mandatory args:
   -n,--name           container name, used to as an identifier for that container from now on