mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-08-04 00:16:59 +00:00
638f0d75c4
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
25 lines
424 B
Bash
25 lines
424 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
case "$1" in
|
|
install|upgrade)
|
|
TARCH=$(uname -m)
|
|
GENESIS_FS="/opt/xcat/share/xcat/netboot/genesis/$TARCH/fs"
|
|
for d in bin sbin lib lib64 var/run; do
|
|
[ -d "$GENESIS_FS/$d" ] && rm -rf "$GENESIS_FS/$d"
|
|
done
|
|
;;
|
|
|
|
abort-upgrade)
|
|
;;
|
|
|
|
*)
|
|
echo "preinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|