vmimage.subr (78b6117dac99c80fe618979fef4ef322b97415fa) | vmimage.subr (4f223e0da7b4a055d9416f9161b44ffed765a9c3) |
---|---|
1#!/bin/sh 2# 3# 4# 5# Common functions for virtual machine image build scripts. 6# 7 8scriptdir=$(dirname $(realpath $0)) --- 287 unchanged lines hidden (view full) --- 296 exit 1 297 ;; 298 esac 299 300 if [ ${ESP} = "yes" ]; then 301 # Create an ESP 302 espfilename=$(mktemp /tmp/efiboot.XXXXXX) 303 make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi | 1#!/bin/sh 2# 3# 4# 5# Common functions for virtual machine image build scripts. 6# 7 8scriptdir=$(dirname $(realpath $0)) --- 287 unchanged lines hidden (view full) --- 296 exit 1 297 ;; 298 esac 299 300 if [ ${ESP} = "yes" ]; then 301 # Create an ESP 302 espfilename=$(mktemp /tmp/efiboot.XXXXXX) 303 make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi |
304 BOOTPARTS="${BOOTPARTS} -p efi/efiesp:=${espfilename}" | 304 BOOTPARTS="${BOOTPARTS} -p efi/efiboot0:=${espfilename}" |
305 306 # Add this to fstab 307 mkdir -p ${DESTDIR}/boot/efi | 305 306 # Add this to fstab 307 mkdir -p ${DESTDIR}/boot/efi |
308 echo "/dev/${ROOTLABEL}/efiesp /boot/efi msdosfs rw 2 2" \ | 308 echo "/dev/${ROOTLABEL}/efiboot0 /boot/efi msdosfs rw 2 2" \ |
309 >> ${DESTDIR}/etc/fstab 310 fi 311 312 echo "Building filesystem... Please wait." 313 buildfs 314 315 echo "Building final disk image... Please wait." 316 mkimg -s ${PARTSCHEME} -f ${VMFORMAT} \ --- 20 unchanged lines hidden --- | 309 >> ${DESTDIR}/etc/fstab 310 fi 311 312 echo "Building filesystem... Please wait." 313 buildfs 314 315 echo "Building final disk image... Please wait." 316 mkimg -s ${PARTSCHEME} -f ${VMFORMAT} \ --- 20 unchanged lines hidden --- |