Skip to content

Commit

Permalink
Merge pull request #146 from sudeeshjohn/growpart
Browse files Browse the repository at this point in the history
Fixing the template and increasing the default image size
  • Loading branch information
ltccci authored May 24, 2021
2 parents e5ccfcc + dfaf707 commit c4a06cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/image/qcow2ova/prep/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set -o errexit
set -o nounset
set -o pipefail
mv /etc/resolv.conf /etc/resolv.conf.orig | true
mv /etc/resolv.conf /etc/resolv.conf.orig || true
echo "nameserver 9.9.9.9" | tee /etc/resolv.conf
{{if eq .Dist "rhel"}}
subscription-manager register --force --auto-attach --username={{ .RHNUser }} --password={{ .RHNPassword }}
Expand Down Expand Up @@ -75,7 +75,7 @@ subscription-manager clean
# Remove the ibm repositories used for the rsct installation
rpm -e ibm-power-repo-*.noarch
mv /etc/resolv.conf.orig /etc/resolv.conf | true
mv /etc/resolv.conf.orig /etc/resolv.conf || true
touch /.autorelabel
`

Expand Down
2 changes: 1 addition & 1 deletion cmd/image/qcow2ova/qcow2ova.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func init() {
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.ImageName, "image-name", "", "Name of the resultant OVA image")
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.ImageURL, "image-url", "", "URL or absolute local file path to the <QCOW2>.gz image")
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.ImageDist, "image-dist", "", "Image Distribution(supported: rhel, centos, coreos)")
Cmd.Flags().Uint64Var(&pkg.ImageCMDOptions.ImageSize, "image-size", 8, "Size (in GB) of the resultant OVA image")
Cmd.Flags().Uint64Var(&pkg.ImageCMDOptions.ImageSize, "image-size", 11, "Size (in GB) of the resultant OVA image")
Cmd.Flags().Int64Var(&pkg.ImageCMDOptions.TargetDiskSize, "target-disk-size", 120, "Size (in GB) of the target disk volume where OVA will be copied")
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.RHNUser, "rhn-user", "", "RedHat Subscription username. Required when Image distribution is rhel")
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.RHNPassword, "rhn-password", "", "RedHat Subscription password. Required when Image distribution is rhel")
Expand Down

0 comments on commit c4a06cd

Please sign in to comment.