fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
parent
8e1ce09b0d
commit
52fc61f2d1
@ -159,10 +159,17 @@ func ResizeRootFS() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
err = w.Sync()
|
||||||
err = ioctl.BlkRRPart(w.Fd())
|
|
||||||
w.Close()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
blkerr := ioctl.BlkRRPart(w.Fd())
|
||||||
|
err = w.Close()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if blkerr != nil {
|
||||||
args := []string{}
|
args := []string{}
|
||||||
for _, name := range []string{"partx", "partprobe", "kpartx"} {
|
for _, name := range []string{"partx", "partprobe", "kpartx"} {
|
||||||
if _, err = exec.LookPath(name); err == nil {
|
if _, err = exec.LookPath(name); err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user