From: Christian Hofstaedtler Date: Wed, 15 Jun 2011 18:27:00 +0000 (+0200) Subject: Enable --force-unsafe-io for dpkg X-Git-Tag: v0.15.0~36 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=9269536ba7bb7def8664972d153b71d193450595;ds=sidebyside Enable --force-unsafe-io for dpkg While this might help on resource constrained systems, no performance impact has been measured during an unscientific test on a well-geared machine. --- diff --git a/grml-live b/grml-live index 56275f1..4b06507 100755 --- a/grml-live +++ b/grml-live @@ -540,12 +540,18 @@ else mount --bind "${MIRROR_DIRECTORY}" "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}" fi + # tell dpkg to use "unsafe io" during the build + [ -d "$CHROOT_OUTPUT/etc/dpkg/dpkg.cfg.d" ] || mkdir -p "$CHROOT_OUTPUT/etc/dpkg/dpkg.cfg.d" + echo force-unsafe-io > "$CHROOT_OUTPUT/etc/dpkg/dpkg.cfg.d/unsafe-io" + log "Executed FAI command line:" log "BUILD_ONLY=$BUILD_ONLY BOOTSTRAP_ONLY=$BOOTSTRAP_ONLY fai $VERBOSE -C $GRML_FAI_CONFIG -c$CLASSES -u $HOSTNAME $FAI_ACTION $CHROOT_OUTPUT $FAI_ARGS" BUILD_ONLY="$BUILD_ONLY" BOOTSTRAP_ONLY="$BOOTSTRAP_ONLY" fai $VERBOSE -C "$GRML_FAI_CONFIG" -c"$CLASSES" -u \ "$HOSTNAME" $FAI_ACTION "$CHROOT_OUTPUT" $FAI_ARGS | tee -a $LOGFILE RC="$PIPESTATUS" # notice: bash-only + rm -f "$CHROOT_OUTPUT/etc/dpkg/dpkg.cfg.d/unsafe-io" + FORCE_ISO_REBUILD=true if [ "$RC" != 0 ] ; then