Skip to content

Instantly share code, notes, and snippets.

@jchodakowski
Created March 7, 2017 21:47
Show Gist options
  • Save jchodakowski/1f4ff13aa6a92926f6dbd5df2971b6a4 to your computer and use it in GitHub Desktop.
Save jchodakowski/1f4ff13aa6a92926f6dbd5df2971b6a4 to your computer and use it in GitHub Desktop.
Preseed shell command
#!/bin/sh
. /usr/share/debconf/confmodule
set -e
anna-install parted-udeb
preseed_fetch lvm.sh /tmp/lvm.sh
chmod 755 /tmp/lvm.sh
#echo /tmp/lvm.sh installer >> /var/lib/dpkg/info/download-installer.postinst
#sed -i '2i/tmp/lvm.sh installer' /var/lib/dpkg/info/live-installer.postinst
sed -i 's/partman/\/tmp\/lvm.sh destroy; \/tmp\/lvm.sh partman/' /var/lib/dpkg/info/partman-base.postinst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment