Install a hook to remove /etc/fstab rather than building ubuntu-server

with --debian-installer=live; the latter has unwanted side-effects.
This commit is contained in:
Colin Watson 2012-07-23 21:34:25 +01:00
parent 4aab9e1f2f
commit 36cf7b73da
2 changed files with 14 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.72) UNRELEASED; urgency=low
* Install a hook to remove /etc/fstab rather than building ubuntu-server
with --debian-installer=live; the latter has unwanted side-effects.
-- Colin Watson <cjwatson@ubuntu.com> Mon, 23 Jul 2012 21:33:51 +0100
livecd-rootfs (2.71) quantal; urgency=low
* live-build/auto/config: Don't purge .pyc files on ubuntu-server images.

View File

@ -199,7 +199,6 @@ case $PROJECT in
add_task install minimal standard server
COMPONENTS='main'
PREINSTALL_POOL_SEEDS='server-ship'
OPTS="${OPTS:+$OPTS }--debian-installer=live"
;;
ubuntu-core)
@ -293,6 +292,13 @@ case $PROJECT in
kubuntu|kubuntu-active)
ln -s /usr/share/live/build/examples/hooks/kubuntu_chroot_icon-theme.sh config/chroot_local-hooks/
;;
ubuntu-server)
cat > config/chroot_local-hooks/ubuntu-server_chroot_remove-fstab.sh <<EOF
#! /bin/sh
rm -f /etc/fstab
EOF
;;
esac
case $SUBPROJECT in