Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 16, 2024
1 parent e931fc9 commit 184f795
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
3 changes: 0 additions & 3 deletions bin/setup-storage
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,6 @@ if ($FAI::check_only) {
$FAI::udev_settle = "udevadm settle --timeout=10" if (&FAI::in_path("udevadm"));
$FAI::udev_settle = "udevsettle --timeout=10" if (&FAI::in_path("udevsettle"));
defined($FAI::udev_settle) or die "Failed to find determine a proper way to tell udev to settle; is udev installed?";

# start all RAID arrays in case some of the aren't running yet
&FAI::in_path("mdadm-startall") and `mdadm-startall`;
`$FAI::udev_settle`;

# read the sizes and partition tables of all disks listed in $FAI::disks
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
fai (6.2.1~beta4) experimental; urgency=low

* first tests

-- Thomas Lange <lange@debian.org> Sun, 11 Feb 2024 13:15:48 +0100

fai (6.2) unstable; urgency=low

[ Thomas Lange ]
Expand Down
5 changes: 4 additions & 1 deletion debian/tests/config-space
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ set -e
. ./debian/tests/common.sh

fai-mk-configspace

umask
ls -al /srv
ls -al /srv/fai
ls -al /srv/config
# test the results of the commands called
chk-file $CS/class/50-host-classes
chk-file $CS/class/DEBIAN.var
Expand Down
11 changes: 11 additions & 0 deletions debian/tests/fai-mirror
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ trap "cp -vp mirror.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT
cd "$AUTOPKGTEST_TMP"

mdir=/tmp/mirror

echo "Checking config space"
set -x
umask
ls -al /srv
ls -al /srv/fai
ls -al /srv/config
fai-mk-configspace
ls -al /srv/fai/config
set +x

fai-mirror -s$CS -m1 -xARM64,I386,ROCKY,UBUNTU,FOCAL,CLOUD,CHROOT,STANDARD,NONFREE,GNOME $mdir >& mirror.log

# test the results of the commands called
Expand Down

0 comments on commit 184f795

Please sign in to comment.