github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/cmds/core/unmount/unmount.go (about) 1 // Copyright 2012-2020 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 unmounts new from old, or everything mounted on old if new is omitted. 6 // 7 // Synopsis: 8 // 9 // unmount [ new ] old 10 package main 11 12 import ( 13 "log" 14 "os" 15 16 "github.com/mvdan/u-root-coreutils/pkg/namespace" 17 ) 18 19 func main() { 20 mod, err := namespace.ParseArgs(os.Args) 21 if err != nil { 22 log.Fatal(err) 23 } 24 if err := mod.Modify(namespace.DefaultNamespace, &namespace.Builder{}); err != nil { 25 log.Fatal(err) 26 } 27 }