gitee.com/mirrors_u-root/u-root@v7.0.0+incompatible/cmds/core/umount/umount.go (about) 1 // Copyright 2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Unmount a filesystem at the specified path. 6 // 7 // Synopsis: 8 // umount [-f | -l] PATH 9 // 10 // Options: 11 // -f: force unmount 12 // -l: lazy unmount 13 package main 14 15 import "log" 16 17 func main() { 18 if err := umount(); err != nil { 19 log.Fatal(err) 20 } 21 }