Skip to content

Commit c4a06cd

Browse files
authored
Merge pull request #146 from sudeeshjohn/growpart
Fixing the template and increasing the default image size
2 parents e5ccfcc + dfaf707 commit c4a06cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/image/qcow2ova/prep/templates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set -o errexit
2626
set -o nounset
2727
set -o pipefail
2828
29-
mv /etc/resolv.conf /etc/resolv.conf.orig | true
29+
mv /etc/resolv.conf /etc/resolv.conf.orig || true
3030
echo "nameserver 9.9.9.9" | tee /etc/resolv.conf
3131
{{if eq .Dist "rhel"}}
3232
subscription-manager register --force --auto-attach --username={{ .RHNUser }} --password={{ .RHNPassword }}
@@ -75,7 +75,7 @@ subscription-manager clean
7575
# Remove the ibm repositories used for the rsct installation
7676
rpm -e ibm-power-repo-*.noarch
7777
78-
mv /etc/resolv.conf.orig /etc/resolv.conf | true
78+
mv /etc/resolv.conf.orig /etc/resolv.conf || true
7979
touch /.autorelabel
8080
`
8181

cmd/image/qcow2ova/qcow2ova.go

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

0 commit comments

Comments
 (0)