mirror of
https://github.com/rancher/os.git
synced 2025-08-31 06:11:12 +00:00
Need to show the user we're doing something when formating large disks
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -762,7 +762,7 @@ func formatdevice(device, partition string) error {
|
||||
// -O ^64bit: for syslinux: http://www.syslinux.org/wiki/index.php?title=Filesystem#ext
|
||||
cmd := exec.Command("mkfs.ext4", "-F", "-i", "4096", "-O", "^64bit", "-L", "RANCHER_STATE", partition)
|
||||
log.Debugf("Run(%v)", cmd)
|
||||
//cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
|
||||
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
|
||||
if err := cmd.Run(); err != nil {
|
||||
log.Errorf("mkfs.ext4: %s", err)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user