Skip to content

Commit

Permalink
Switch from aptitude to apt-get as package manager in package list
Browse files Browse the repository at this point in the history
So far we used "PACKAGES aptitude" to use aptitude as package
manager. FAI's install_packages supports different commands
(package managers) though, see `install_packages -H`:

  % install_packages -H | grep -e '^\s*aptitude ' -e '^\s*install '
         aptitude    aptitude -R -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install
          install    apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew --fix-missing install

FAI versions until 5.3** support ignoring packages via:

| PACKAGES install
|
| packagename-

We can use that feature in the IGNORE class to avoid e.g. the
installation of the partimage package which is currently
unavailable in Debian/testing and therefore would fail the build
(because of aptitude's #835372 behavior change).

** NOTE: FAI v5.3 is broken regarding this behavior, so we've to
use FAI 4.3.1+deb8u1 from jessie to use that feature (at least
until it's restored/fixed again).
  • Loading branch information
mika committed Nov 25, 2016
1 parent 8075b3f commit 121b348
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion db/db-to-fai
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else

# write fai header and package information to stdout:
echo "# package list of build $BUILD_ID from database $DB:"
echo "PACKAGES aptitude"
echo "PACKAGES install"
awk -F\| '{print $1"="$2}' "$TMPFILE"
fi

Expand Down
2 changes: 1 addition & 1 deletion docs/grml-live.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ How do I add additional Debian package(s) to my CD/ISO?
Just create a new class (using the package_config directory):

# cat > /etc/grml/fai/config/package_config/MIKA << EOF
PACKAGES aptitude
PACKAGES install

vim
another_name_of_a_debian_package
Expand Down
2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/DEBIAN_SQUEEZE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

# needed for linux-image-amd64-grml
linux-base/squeeze-backports
Expand Down
2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/DEBIAN_WHEEZY
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

zd1211-firmware
ifenslave-2.6
Expand Down
2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/GRMLBASE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

apt-transport-https
busybox
Expand Down
6 changes: 3 additions & 3 deletions etc/grml/fai/config/package_config/GRML_FULL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

grml-live
grml-paste
Expand Down Expand Up @@ -335,8 +335,8 @@ usbview
bats
stress

PACKAGES aptitude I386
PACKAGES install I386
linux-image-i386-grml

PACKAGES aptitude AMD64
PACKAGES install AMD64
linux-image-amd64-grml
6 changes: 3 additions & 3 deletions etc/grml/fai/config/package_config/GRML_SMALL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

apt
atftp
Expand Down Expand Up @@ -93,8 +93,8 @@ xfsprogs
zip
zsh

PACKAGES aptitude I386
PACKAGES install I386
linux-image-i386-grml

PACKAGES aptitude AMD64
PACKAGES install AMD64
linux-image-amd64-grml
2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/IGNORE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PACKAGES aptitude
PACKAGES install

2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/LATEX
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

auctex
bibcursed
Expand Down
2 changes: 1 addition & 1 deletion etc/grml/fai/config/package_config/XORG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES aptitude
PACKAGES install

xfonts-100dpi
xfonts-75dpi
Expand Down

0 comments on commit 121b348

Please sign in to comment.