Fix permissions in BuildLiveCD when setting up auto directory.

ubuntu/precise
Colin Watson 14 years ago
parent 4b8ada68cd
commit fafd476b60

@ -136,10 +136,7 @@ for STE in $SUITES; do
mkdir -p ${PUBDIR}${NOW} mkdir -p ${PUBDIR}${NOW}
> ${LOG} > ${LOG}
if $LIVE_BUILD; then if $LIVE_BUILD; then
mkdir -p "${DIR}/auto" $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && rm -rf auto && mkdir -p auto && for f in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/\$f auto/; done" >> ${LOG} 2>&1 || true
for f in config build clean; do
ln -s "/usr/share/livecd-rootfs/live-build/auto/$f" "${DIR}/auto/"
done
$LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && lb clean --purge" >> ${LOG} 2>&1 || true $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && lb clean --purge" >> ${LOG} 2>&1 || true
if ! $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && SUITE=${STE} PROJECT=${FS} ARCH=${ARCH} SUBARCH=${SUBARCH} IMAGEFORMAT=${IMAGEFORMAT} lb config" >> ${LOG} 2>&1; then if ! $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && SUITE=${STE} PROJECT=${FS} ARCH=${ARCH} SUBARCH=${SUBARCH} IMAGEFORMAT=${IMAGEFORMAT} lb config" >> ${LOG} 2>&1; then
exit 1 exit 1

1
debian/changelog vendored

@ -1,6 +1,7 @@
livecd-rootfs (2.1) UNRELEASED; urgency=low livecd-rootfs (2.1) UNRELEASED; urgency=low
* Fix ordering of log file creation in BuildLiveCD. * Fix ordering of log file creation in BuildLiveCD.
* Fix permissions in BuildLiveCD when setting up auto directory.
-- Colin Watson <cjwatson@ubuntu.com> Mon, 13 Jun 2011 19:42:59 +0100 -- Colin Watson <cjwatson@ubuntu.com> Mon, 13 Jun 2011 19:42:59 +0100

Loading…
Cancel
Save