mirror of
https://github.com/rancher/os.git
synced 2025-09-25 04:37:02 +00:00
Fix ISO based cloud-config drive
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -81,7 +81,11 @@ func MountConfigDrive() error {
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user