Merge pull request #1779 from Zexi/bugfix/baremetal-msdos-primary-part-not-resize

baremetal: fix msdos last primary partition not resized
This commit is contained in:
yunion-ci-robot
2019-07-17 22:15:59 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ func (ps *DiskPartitions) ResizePartition(offsetMB int64) error {
}
} else {
cmd = fmt.Sprintf("/usr/sbin/parted -a none -s %s -- unit s rm %d mkpart %s", part.disk.dev, part.index, part.diskType)
cmd = fmt.Sprintf("%s %d %d", cmd, part.start, part.end)
cmd = fmt.Sprintf("%s %d %d", cmd, part.start, end)
if part.bootable {
cmd = fmt.Sprintf("%s set %d boot on", cmd, part.index)
}
+1 -1
View File
@@ -173,7 +173,7 @@ func IsPXERequest(pkt Packet) bool {
//}
if pkt.GetOptionValue(OptionClientArchitecture) == nil {
log.Debugf("not a PXE boot request (missing option 93)")
log.Debugf("%s not a PXE boot request (missing option 93)", pkt.CHAddr().String())
return false
}
return true