Created
July 10, 2017 21:28
-
-
Save dragon788/17b78a338de34ed0bf21932f1cceaee0 to your computer and use it in GitHub Desktop.
Workaround for preseed from USB mounted media warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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