@@ -473,38 +473,6 @@ func GetInitializedStamp(entryPointPID int, targetUser *user.User) (string, erro
473473 return initializedStamp , nil
474474}
475475
476- // GetMountPoint returns the mount point of a target.
477- func GetMountPoint (target string ) (string , error ) {
478- var stdout strings.Builder
479- if err := shell .Run ("df" , nil , & stdout , nil , "--output=target" , target ); err != nil {
480- return "" , err
481- }
482-
483- output := stdout .String ()
484- options := strings .Split (output , "\n " )
485- if len (options ) != 3 {
486- return "" , errors .New ("unexpected output from df(1)" )
487- }
488-
489- mountPoint := strings .TrimSpace (options [1 ])
490- return mountPoint , nil
491- }
492-
493- // GetMountOptions returns the mount options of a target.
494- func GetMountOptions (target string ) (string , error ) {
495- var stdout strings.Builder
496- findMntArgs := []string {"--noheadings" , "--output" , "OPTIONS" , target }
497-
498- if err := shell .Run ("findmnt" , nil , & stdout , nil , findMntArgs ... ); err != nil {
499- return "" , err
500- }
501-
502- output := stdout .String ()
503- options := strings .Split (output , "\n " )
504- mountOptions := strings .TrimSpace (options [0 ])
505- return mountOptions , nil
506- }
507-
508476func GetP11KitServerSocket (targetUser * user.User ) (string , error ) {
509477 toolbxRuntimeDirectory , err := GetRuntimeDirectory (targetUser )
510478 if err != nil {
0 commit comments