Thomas Lamprecht
fbec3675cc
pacman: allow overriding config file and siglevel
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-02 14:44:18 +01:00
Thomas Lamprecht
034835001d
run_command: allow to opt-out dying on non-zero exit code
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-02 14:42:38 +01:00
Thomas Lamprecht
ae71b49f69
split out writing (host-side) pacman.conf
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-02 13:15:47 +01:00
Thomas Lamprecht
b867882aee
finalize: allow to choose gzip or zstd and default to latter
...
zstd shaves of >50 MiB of the final archive and is (in general)
faster on decompression too
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 19:47:41 +01:00
Thomas Lamprecht
6bd339d3b8
update copyright years
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 19:46:45 +01:00
Oguz Bektas
b36f9145aa
add vi and nano to base template
...
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2020-05-08 16:43:13 +02:00
Thomas Lamprecht
2d2bee9185
mask sys-kernel-*.mount units, no use in CT by default
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-25 17:55:21 +02:00
Thomas Lamprecht
9cf8106382
aab: add use local lib
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-25 17:54:31 +02:00
Thomas Lamprecht
18ef2f8c0d
print out fianl commpressed archive size and format better
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-24 17:29:49 +02:00
Thomas Lamprecht
1e25020c9b
print out available commands and short description
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-23 10:52:13 +02:00
Thomas Lamprecht
333bdb6220
followup: fix indentation and missing single quote
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-23 10:28:13 +02:00
Thomas Lamprecht
dcc40f0e99
followup: separate newline to new line
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-20 14:35:39 +02:00
Oguz Bektas
896edd1a86
added description to aab.conf for aplinfo
...
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-09-20 13:34:07 +02:00
Stoiko Ivanov
e374e7a7e1
bsys: Drop i686 support
...
ArchLinux has stopped supporting i686 1.5 years ago [0].
[0] https://www.archlinux.org/news/the-end-of-i686-support/
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov
01756eba20
refactor initial device creation for pacman
...
`aab` installs `archlinux-keyring`, which in turn invokes `dirmngr` during
installation. `dirmngr` needs access (at least) to '/dev/null' (see [0]), which
`aab` only created afterwards (before populating the keyring). This lead to
`dirmngr` spinning (and filling the filesystem with a regular file
'${rootfs}/dev/null' containing error messages.
This patch changes the behavior of aab: it now creates the devices before
installing 'archlinux-keyring' and removes them after the keyring is populated.
In order to save one further `mkdir` call for the 'dev' directory, this was
appended to the `mkpath` invocation in ve_init.
[0] https://bbs.archlinux.org/viewtopic.php?id=222002
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov
149d977340
remove extra mkdir $self->{rootfs} in initialize
...
The mkdir in intialize is not too helpful since, ve_init, which usually gets
called soon after (`aab init` is followed by `aab bootstrap` in the Makefile)
has a `rmtree $self->{rootfs}` and recreates it directly afterwards again.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov
60dbf75e0c
exclude linux-firmware from installed packages
...
This reduces a fresh containers' size by ~220M (170M for the gziped template)
and additionally prevents one spurious errormessage from
`systemd-tmpfiles --create` occuring during bootup and other invocations
(e.g. `pacman -S $package`)
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov
dfb4fbaa14
remove container config during finalize
...
Since the container config for the build is created with O_EXCL, multiple
consecutive invocations of `make default` fail, if the config file exists.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Oguz Bektas
b8f914c167
change `pacman -Sy` to `-Syy`, cleanup whitespace
...
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2018-11-23 12:56:58 +01:00
Thomas Lamprecht
87fbfb3a1f
use new config properties for sample lxc config
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-04-05 10:15:44 +02:00
Wolfgang Bumiller
2142625a8c
Use %m (month) not %M (minute) for today's date...
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-12-14 09:03:01 +01:00
Wolfgang Bumiller
0cff4ef1b5
x86_64 -> amd64 for consistency
2017-03-17 15:18:13 +01:00
Wolfgang Bumiller
ac5c32c76f
stretch updates
2017-03-17 15:13:02 +01:00
Wolfgang Bumiller
19401a1ef5
update version formatting
2017-03-17 15:12:55 +01:00
Wolfgang Bumiller
7c20fd825f
import missing open2
2016-08-18 11:51:24 +02:00
Wolfgang Bumiller
d43d058dec
use --rcfile to work with newer lxc
2016-08-18 11:48:52 +02:00
Wolfgang Bumiller
e61d6533c3
remove keyring in finalize()
2015-08-31 10:39:41 +02:00
Wolfgang Bumiller
766f0fa30f
using a weak key for pacman-key --init
2015-08-31 10:37:42 +02:00
Dietmar Maurer
da8dfe0b95
set Section to 'system'
2015-08-29 11:23:59 +02:00
Dietmar Maurer
b65bfe8c21
add infopage to appliance.info
2015-08-29 11:12:44 +02:00
Dietmar Maurer
7715f2d4e1
rename template to archlinux-base
2015-08-29 11:12:02 +02:00
Wolfgang Bumiller
4eaaed9158
there's no [multilib] repo for i686
2015-08-27 10:50:25 +02:00
Wolfgang Bumiller
5f96733fdb
actually use the pacman config
2015-08-27 10:45:15 +02:00
Wolfgang Bumiller
82975d2264
Makefile to build archlinux-base image
2015-08-27 10:37:11 +02:00
Wolfgang Bumiller
564915270f
added README and COPYING files
2015-08-24 08:01:14 +02:00
Wolfgang Bumiller
36cffb85eb
move AAB.pm to PVE/
2015-08-21 10:02:48 +02:00
Wolfgang Bumiller
7b25f3312e
initial import
2015-08-21 09:08:11 +02:00