2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-04 16:36:58 +00:00
Files
xcat-core/xCAT-genesis-builder/debian/preinst
T
2026-06-20 18:48:14 -03:00

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