|
|
@ -713,16 +713,15 @@ EOF
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PROJECT in
|
|
|
|
if [ $PROJECT = ubuntu-server ] && [ $SUBPROJECT != live ]; then
|
|
|
|
ubuntu-server)
|
|
|
|
cat > config/hooks/100-remove-fstab.chroot <<EOF
|
|
|
|
cat > config/hooks/100-remove-fstab.chroot <<EOF
|
|
|
|
|
|
|
|
#! /bin/sh
|
|
|
|
#! /bin/sh
|
|
|
|
rm -f /etc/fstab
|
|
|
|
rm -f /etc/fstab
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
ubuntukylin)
|
|
|
|
if [ $PROJECT = ubuntukylin ]; then
|
|
|
|
cat > config/hooks/100-ubuntukylin.chroot <<EOF
|
|
|
|
cat > config/hooks/100-ubuntukylin.chroot <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
HOOK=/usr/share/ubuntukylin-default-settings/hooks/chroot
|
|
|
|
HOOK=/usr/share/ubuntukylin-default-settings/hooks/chroot
|
|
|
@ -731,8 +730,7 @@ if [ -x \$HOOK ]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if $BINARY_REMOVE_LINUX; then
|
|
|
|
if $BINARY_REMOVE_LINUX; then
|
|
|
|
cat > config/binary_rootfs/excludes << EOF
|
|
|
|
cat > config/binary_rootfs/excludes << EOF
|
|
|
|