1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 14:01:34 +00:00

Replace partprobe with partx

This commit is contained in:
Josh Curl 2016-08-18 15:35:39 -07:00
parent a81be13f82
commit da69a464fb
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677
2 changed files with 2 additions and 7 deletions

View File

@ -150,12 +150,6 @@ func resizeDevice(cfg *rancherConfig.CloudConfig) error {
return err
}
cmd = exec.Command("partprobe")
err = cmd.Run()
if err != nil {
return err
}
cmd = exec.Command("resize2fs", fmt.Sprintf("%s1", cfg.Rancher.ResizeDevice))
err = cmd.Run()
if err != nil {

View File

@ -33,6 +33,7 @@ RUN rm /sbin/poweroff /sbin/reboot /sbin/halt && \
echo '%sudo ALL=(ALL) ALL' >> /etc/sudoers
COPY inputrc /etc/inputrc
COPY growpart /usr/bin/growpart
RUN sed -i -e 's/duid/clientid/g' /etc/dhcpcd.conf
RUN sed -i s/"partx --update \"\$part\" \"\$dev\""/"partx --update --nr \"\$part\" \"\$dev\""/g /usr/bin/growpart && \
sed -i -e 's/duid/clientid/g' /etc/dhcpcd.conf
ENTRYPOINT ["/usr/bin/ros", "entrypoint"]