Skip to content

Commit

Permalink
remove duplicate modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 26, 2022
1 parent 028bb79 commit 4b0f06c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/fai-make-nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# fai-make-nfsroot -- create nfsroot directory and add additional packages
#
# This script is part of FAI (Fully Automatic Installation)
# (c) 2000-2021 by Thomas Lange, lange@informatik.uni-koeln.de
# (c) 2000-2022 by Thomas Lange, lange@informatik.uni-koeln.de
# Universitaet zu Koeln
# (c) 2004 by Henning Glawe, glaweh@physik.fu-berlin.de
# Freie Universitaet Berlin
Expand All @@ -32,7 +32,7 @@
usage() {

cat <<-EOF
Copyright (C) 1999-2021 Thomas Lange
Copyright (C) 1999-2022 Thomas Lange
Usage: fai-make-nfsroot [OPTIONS]
Create an NFSROOT for FAI.
Expand Down Expand Up @@ -421,7 +421,7 @@ EOF
# currently we do not want to use systemd, but CD booting, also we
# do not need all those filesystems inside the initrd
mkdir $NFSROOT/etc/dracut.conf.d
echo 'omit_dracutmodules+=" dracut-systemd systemd systemd-initrd systemd-networkd systemd-initrd "' > $NFSROOT/etc/dracut.conf.d/12-no-systemd.conf
echo 'omit_dracutmodules+=" dracut-systemd systemd systemd-initrd systemd-networkd "' > $NFSROOT/etc/dracut.conf.d/12-no-systemd.conf
echo 'add_dracutmodules+=" network-legacy "' >> $NFSROOT/etc/dracut.conf.d/12-no-systemd.conf
if [ $full = 1 ];then
echo 'add_dracutmodules+=" livenet "' > $NFSROOT/etc/dracut.conf.d/13-add-cd-support.conf
Expand All @@ -432,7 +432,7 @@ EOF
fi
echo 'hostonly="no"' > $NFSROOT/etc/dracut.conf.d/20-generic-image.conf
cat <<EOF > $NFSROOT/etc/dracut.conf.d/01-omit.conf
omit_dracutmodules+=" btrfs crypt dash lvm resume usrmount modsign mdraid shutdown dracut-systemd systemd systemd-initrd systemd-networkd systemd-initrd virtfs "
omit_dracutmodules+=" btrfs crypt dash lvm resume usrmount modsign mdraid shutdown dracut-systemd systemd systemd-initrd systemd-networkd virtfs "
filesystems="$fslist"
EOF

Expand Down

0 comments on commit 4b0f06c

Please sign in to comment.