Skip to content

Instantly share code, notes, and snippets.

@ianw ianw/dash-x.sh
Created Dec 4, 2014

Embed
What would you like to do?
revert -x behaviour in diskimage-builder
#!/bin/bash
mkdir /tmp/diff
git show > /tmp/diff/out.diff
pushd /tmp/diff
splitdiff -a -d out.diff
popd
for file in /tmp/diff/*elements*.patch; do
# find if a "set -..x" was removed
if grep --quiet '^\-.*set.*x' $file; then
filename=$(echo ${file:12} | sed -e 's|_|/|g' -e 's/.patch$//')
echo fixing $filename
sed -i 's/DIB_DEBUG_TRACE:-0/DIB_DEBUG_TRACE:-1/' $filename
fi
done
rm -rf /tmp/diff
# fixing elements/architecture-emulation-binaries/cleanup.d/01-cleanbinary
# fixing elements/architecture-emulation-binaries/extra-data.d/01-copy-binary
# fixing elements/base/cleanup.d/99-tidy-logs
# fixing elements/base/extra-data.d/99-enable-install-types
# fixing elements/cleanup-kernel-initrd/cleanup.d/99-cleanup-kernel-initrd
# fixing elements/debian-systemd/root.d/05-debian-systemd
# fixing elements/debian-upstart/root.d/05-debian-upstart
# fixing elements/debian-upstart/root.d/20-debian-fix-upstart-jobs
# fixing elements/dhcp-all-interfaces/install.d/50-dhcp-all-interfaces
# fixing elements/dpkg/finalise.d/99-write-dpkg-manifest
# fixing elements/dracut-ramdisk/install.d/20-install-dracut-deps
# fixing elements/dracut-ramdisk/post-install.d/99-build-dracut-ramdisk
# fixing elements/element-manifest/extra-data.d/75-inject-element-manifest
# fixing elements/enable-serial-console/install.d/20-stty
# fixing elements/iso/cleanup.d/100-build-iso
# fixing elements/local-config/pre-install.d/02-proxy-settings
# fixing elements/manifests/cleanup.d/01-copy-manifests-dir
# fixing elements/manifests/extra-data.d/20-manifest-dir
# fixing elements/modprobe-blacklist/install.d/80-modprobe-blacklist
# fixing elements/opensuse/extra-data.d/01-inject-defaults
# fixing elements/package-installs/bin/package-installs
# fixing elements/package-installs/bin/package-uninstalls
# fixing elements/package-installs/install.d/00-package-installs
# fixing elements/package-installs/install.d/99-package-uninstalls
# fixing elements/package-installs/post-install.d/00-package-installs
# fixing elements/package-installs/post-install.d/99-package-uninstalls
# fixing elements/package-installs/pre-install.d/02-package-installs
# fixing elements/package-installs/pre-install.d/99-package-uninstalls
# fixing elements/pkg-map/extra-data.d/10-create-pkg-map-dir
# fixing elements/ramdisk-base/cleanup.d/99-extract-ramdisk-files
# fixing elements/ramdisk-base/extra-data.d/01-inject-ramdisk-build-files
# fixing elements/ramdisk-base/post-install.d/01-ensure-binaries
# fixing elements/ramdisk/install.d/20-install-dhcp-client
# fixing elements/ramdisk/post-install.d/99-build-ramdisk
# fixing elements/redhat-common/finalise.d/99-cleanup-tmp-grub
# fixing elements/rhel-common/finalise.d/99-unregister
# fixing elements/rhel-common/install.d/10-openstack-selinux-rhel
# fixing elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration
# fixing elements/rhel-common/pre-install.d/00-rhel-registration
# fixing elements/rpm-distro/finalise.d/11-selinux-fixfiles-restore
# fixing elements/serial-console/extra-data.d/20-stty
# fixing elements/svc-map/extra-data.d/11-copy-svc-map-file
# fixing elements/uboot/cleanup.d/98-uboot
# fixing elements/ubuntu/root.d/10-cache-ubuntu-tarball
# fixing elements/vm/cleanup.d/51-bootloader
# fixing elements/vm/finalise.d/50-remove-bogus-udev-links
# fixing elements/vm/finalise.d/51-bootloader
# fixing elements/yum/post-install.d/99-reset-yum-conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.