Changeset View
Changeset View
Standalone View
Standalone View
release/tools/vmimage.subr
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | vm_create_disk() { | ||||
if [ ${ESP} = "yes" ]; then | if [ ${ESP} = "yes" ]; then | ||||
# Create an ESP | # Create an ESP | ||||
espfilename=$(mktemp /tmp/efiboot.XXXXXX) | espfilename=$(mktemp /tmp/efiboot.XXXXXX) | ||||
make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi | make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi | ||||
BOOTPARTS="${BOOTPARTS} -p efi/efiesp:=${espfilename}" | BOOTPARTS="${BOOTPARTS} -p efi/efiesp:=${espfilename}" | ||||
# Add this to fstab | # Add this to fstab | ||||
mkdir -p ${DESTDIR}/boot/efi | mkdir -p ${DESTDIR}/efi | ||||
rgrimes: Since we are touching this line I would really like to see mkdir -> install -d with full… | |||||
echo "/dev/${ROOTLABEL}/efiesp /boot/efi msdosfs rw 2 2" \ | echo "/dev/${ROOTLABEL}/efiesp /efi msdosfs rw 2 2" \ | ||||
>> ${DESTDIR}/etc/fstab | >> ${DESTDIR}/etc/fstab | ||||
fi | fi | ||||
echo "Building filesystem... Please wait." | echo "Building filesystem... Please wait." | ||||
makefs ${MAKEFSARGS} -o label=rootfs -o version=2 -o softupdates=1 \ | makefs ${MAKEFSARGS} -o label=rootfs -o version=2 -o softupdates=1 \ | ||||
-s ${VMSIZE} ${VMBASE} ${DESTDIR} | -s ${VMSIZE} ${VMBASE} ${DESTDIR} | ||||
echo "Building final disk image... Please wait." | echo "Building final disk image... Please wait." | ||||
Show All 18 Lines |
Since we are touching this line I would really like to see mkdir -> install -d with full explicity owner/group/modes here.