1
0
mirror of https://github.com/rancher/os.git synced 2025-06-25 06:21:33 +00:00

Merge pull request #1845 from SvenDowideit/feedback-for-mkfs

Need to show the user we're doing something when formating large disks
This commit is contained in:
Sven Dowideit 2017-05-15 14:05:05 +10:00 committed by GitHub
commit 69f876b73e

View File

@ -762,7 +762,7 @@ func formatdevice(device, partition string) error {
// -O ^64bit: for syslinux: http://www.syslinux.org/wiki/index.php?title=Filesystem#ext // -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) cmd := exec.Command("mkfs.ext4", "-F", "-i", "4096", "-O", "^64bit", "-L", "RANCHER_STATE", partition)
log.Debugf("Run(%v)", cmd) 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 { if err := cmd.Run(); err != nil {
log.Errorf("mkfs.ext4: %s", err) log.Errorf("mkfs.ext4: %s", err)
return err return err