Skip to content

Instantly share code, notes, and snippets.

@dragon788
Created July 10, 2017 21:28
Show Gist options
  • Save dragon788/17b78a338de34ed0bf21932f1cceaee0 to your computer and use it in GitHub Desktop.
Save dragon788/17b78a338de34ed0bf21932f1cceaee0 to your computer and use it in GitHub Desktop.
Workaround for preseed from USB mounted media warning
# Found from slides at http://www.lug-erding.de/vortrag/LUG_Ubuntu_Install_20170125.pdf
d-i partman/early_command string \
USBDEV=$(list-devices usb-partition | sed "s/\(.*\)./\1/");\
BOOTDEV=$(list-devices disk | grep -v "$USBDEV" | head -1);\
debconf-set partman-auto/disk $BOOTDEV;\
debconf-set grub-installer/bootdev $BOOTDEV; \
umount /media;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment