mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Merge pull request #1940 from SvenDowideit/os-1643-vfat-config-drive
Add test for vfat formatted config drive
(cherry picked from commit a2e3c9aa50
)
This commit is contained in:
@@ -242,8 +242,10 @@ if [ "$QIND" != "1" ]; then
|
||||
CLOUD_CONFIG_DISK="-cdrom ${BASE}/state/configdrive.iso"
|
||||
;;
|
||||
fat)
|
||||
echo "TODO: implement a vfat formated qemu img & copy the config files into it"
|
||||
exit 1
|
||||
truncate --size 2M ${BASE}/state/configdrive.img
|
||||
mkfs.vfat -n config-2 ${BASE}/state/configdrive.img
|
||||
mcopy -osi ${BASE}/state/configdrive.img ${CCROOT}/* ::
|
||||
CLOUD_CONFIG_DISK="-hdb ${BASE}/state/configdrive.img"
|
||||
;;
|
||||
*)
|
||||
CLOUD_CONFIG_DISK="-fsdev local,security_model=passthrough,readonly,id=fsdev0,path=${CCROOT} \
|
||||
|
Reference in New Issue
Block a user