Skip to content

Commit

Permalink
get rid of aptitude
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Oct 19, 2017
1 parent ac13ece commit 033980f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 3 additions & 1 deletion bin/fai-make-nfsroot
Expand Up @@ -585,7 +585,9 @@ trap "bad_exit" ERR
# remove all kernels from nfsroot
[ -n "$kremove" ] && {
echo "Removing all kernels from NFSROOT."
$ROOTCMD aptitude -y purge ~nlinux-image
LC_ALL=C $ROOTCMD apt-cache dumpavail > $NFSROOT/var/lib/dpkg/available
LC_ALL=C $ROOTCMD apt-get -qq purge linux-image\*
rm $NFSROOT/var/lib/dpkg/available
exit
}

Expand Down
2 changes: 1 addition & 1 deletion conf/nfsroot.conf
Expand Up @@ -7,7 +7,7 @@ FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
NFSROOT=/srv/fai/nfsroot
TFTPROOT=/srv/tftp/fai
NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
FAI_DEBOOTSTRAP_OPTS="--exclude=wget --include=aptitude"
FAI_DEBOOTSTRAP_OPTS="--exclude=wget"

# Configuration space
FAI_CONFIGDIR=/srv/fai/config
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -43,7 +43,7 @@ Package: fai-server
Architecture: all
Depends: fai-client, debootstrap, xz-utils, ${misc:Depends}
Recommends: nfs-kernel-server, isc-dhcp-server, tftpd-hpa | atftpd, openssh-server, openssh-client, openbsd-inetd | inet-superserver, libproc-daemon-perl
Suggests: debmirror, reprepro, xorriso, squashfs-tools, binutils, grub2, aptitude, perl-tk, qemu-utils, fai-setup-storage
Suggests: debmirror, reprepro, xorriso, squashfs-tools, binutils, grub2, perl-tk, qemu-utils, fai-setup-storage
Description: Fully Automatic Installation server package
FAI is a non-interactive system to install, customize and manage
Linux systems and software configurations on computers as well as
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/basefiles/mk-basefile
Expand Up @@ -34,8 +34,8 @@ EXCLUDE_SID=tasksel,tasksel-data
EXCLUDE_TRUSTY=dhcp3-client,dhcp3-common,info
EXCLUDE_XENIAL=udhcpc,dibbler-client,info,tasksel,tasksel-data

# we need aptitude in the base file, since users may want to use it for installing packages
INCLUDE_DEBIAN=aptitude
# here you can add packages, that are needed very early
INCLUDE_DEBIAN=


setarch() {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/files/etc/fai/nfsroot.conf/FAISERVER
Expand Up @@ -7,7 +7,7 @@ FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
NFSROOT=/srv/fai/nfsroot
TFTPROOT=/srv/tftp/fai
NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
FAI_DEBOOTSTRAP_OPTS="--exclude=info --include=aptitude"
FAI_DEBOOTSTRAP_OPTS="--exclude=info"

# Configuration space
FAI_CONFIGDIR=/srv/fai/config
Expand Down
3 changes: 1 addition & 2 deletions man/fai-make-nfsroot.8
Expand Up @@ -61,8 +61,7 @@ Create a generic nfsroot. Remove most install server specific data from
nfsroot. See also -a.
.TP
.B \-K
Remove all kernels from NFSROOT. This is the same as calling aptitude
purge ~nlinux-image inside the nfsroot.
Remove all kernels from NFSROOT.
.TP
.B \-k
Install additional packages defined in /etc/fai/NFSROOT into the
Expand Down

0 comments on commit 033980f

Please sign in to comment.