
When TEMPLATE_ROOT_WITH_PARTITIONS is set, include (GPT) partition table and install actual OS on the first one. This allows installing grub, or other bootloader. Fixes QubesOS/qubes-issues#2577
25 lines
328 B
Bash
Executable File
25 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export INSTALLDIR=$1
|
|
|
|
. ./builder_setup
|
|
|
|
set -e
|
|
|
|
if ! [ $# -eq 1 ]; then
|
|
echo "usage $0 <mount_point>"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if ! [ -d $INSTALLDIR ]; then
|
|
echo $INSTALLDIR does not exist
|
|
exit 1
|
|
fi
|
|
|
|
echo "--> Cleaning up image file..."
|
|
$SCRIPTSDIR/09_cleanup.sh
|
|
|
|
echo "--> Compacting image file..."
|
|
fstrim -v "$INSTALLDIR"
|