mirror of
https://github.com/rancher/os.git
synced 2025-08-09 18:48:05 +00:00
Fix ISO based cloud-config drive
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
2fb7651b60
commit
69be7de1c4
@ -81,7 +81,11 @@ func MountConfigDrive() error {
|
|||||||
return mount.Mount(configDevName, configDevMountPoint, "9p", "trans=virtio,version=9p2000.L")
|
return mount.Mount(configDevName, configDevMountPoint, "9p", "trans=virtio,version=9p2000.L")
|
||||||
}
|
}
|
||||||
|
|
||||||
return mount.Mount(configDev, configDevMountPoint, "iso9660,vfat", "")
|
fsType, err := util.GetFsType(configDev)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return mount.Mount(configDev, configDevMountPoint, fsType, "ro")
|
||||||
}
|
}
|
||||||
|
|
||||||
func UnmountConfigDrive() error {
|
func UnmountConfigDrive() error {
|
||||||
|
@ -182,6 +182,8 @@ if [ "$QIND" != "1" ]; then
|
|||||||
CLOUD_CONFIG_DISK="-cdrom ${BASE}/state/configdrive.iso"
|
CLOUD_CONFIG_DISK="-cdrom ${BASE}/state/configdrive.iso"
|
||||||
;;
|
;;
|
||||||
fat)
|
fat)
|
||||||
|
echo "TODO: implement a vfat formated qemu img & copy the config files into it"
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CLOUD_CONFIG_DISK="-fsdev local,security_model=passthrough,readonly,id=fsdev0,path=${CCROOT} \
|
CLOUD_CONFIG_DISK="-fsdev local,security_model=passthrough,readonly,id=fsdev0,path=${CCROOT} \
|
||||||
|
Loading…
Reference in New Issue
Block a user