mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user