1 2 3 4
# 1. check $DURING_INSTALL and do not make-initrd if system install # 2. check sys filesystem mounted by mountpoint -q /sys mountpoint -q /sys [ $? -ne 0 -o -n "$DURING_INSTALL" ] || /usr/sbin/make-initrd