mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-28 04:46:52 -04:00
Add option to use after booting system
This commit is contained in:
@@ -41,6 +41,10 @@ func getUsername() string {
|
||||
}
|
||||
|
||||
func partitionIsMounted() bool {
|
||||
if partitionR == "/" {
|
||||
return true
|
||||
}
|
||||
|
||||
isMounted, err := mnt.Mounted(mountPoint)
|
||||
if err != nil {
|
||||
other.PrintError("Failed to verify whether "+partitionR+" is mounted", 1)
|
||||
@@ -49,6 +53,10 @@ func partitionIsMounted() bool {
|
||||
}
|
||||
|
||||
func mountPartition() {
|
||||
if partitionR == "/" {
|
||||
return
|
||||
}
|
||||
|
||||
if !partitionIsMounted() {
|
||||
// root
|
||||
cmd := exec.Command("mount", partitionR, mountPoint)
|
||||
|
||||
Reference in New Issue
Block a user