From: Alexander Vladimirov Date: Wed, 25 Jun 2014 04:52:20 +0000 (+0800) Subject: lxc-archlinux.in: Add pacman keyring initialization back X-Git-Tag: lxc-1.1.0.alpha1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99cbd2996bd5cebf1869c2f7637f6c9fc2004849;p=thirdparty%2Flxc.git lxc-archlinux.in: Add pacman keyring initialization back Shuffle around usage text a bit and add missing -d while there. Signed-off-by: Alexander Vladimirov Acked-by: Stéphane Graber --- diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in index 6f3ce2e03..a95564b16 100644 --- a/templates/lxc-archlinux.in +++ b/templates/lxc-archlinux.in @@ -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 < [-p|--path=] [-a|--arch=] [-r|--root_password=] - [-P|--packages=] [-e|--enable_units=unit1,unit2...] [-c|--config=] [-h|--help] + ${1} -n|--name= [-p|--path=] [-a|--arch=] + [-r|--root_password=] [-P|--packages=] + [-e|--enable_units=unit1,unit2...] [-d|--disable_units=unit1,unit2...] + [-c|--config=] [-h|--help] Mandatory args: -n,--name container name, used to as an identifier for that container from now on