Add mounterPath to mounter interface
In order to be able to use new mounter library, this PR adds the mounterPath flag to kubelet which passes the flag to the mount interface. If flag is empty, mount uses default mount path.
This commit is contained in:
parent
a6e555f69a
commit
c2e6c17b30
|
@ -95,7 +95,7 @@ func getMetadataFromConfigDrive() (*Metadata, error) {
|
|||
|
||||
glog.V(4).Infof("Attempting to mount configdrive %s on %s", dev, mntdir)
|
||||
|
||||
mounter := mount.New()
|
||||
mounter := mount.New("" /* default mount path */)
|
||||
err = mounter.Mount(dev, mntdir, "iso9660", []string{"ro"})
|
||||
if err != nil {
|
||||
err = mounter.Mount(dev, mntdir, "vfat", []string{"ro"})
|
||||
|
|
Loading…
Reference in New Issue