ec2/fedora-18-i386-ec2.ks | 13 +++++++++++++ ec2/fedora-18-x86_64-ec2.ks | 13 +++++++++++++ generic/fedora-18-i386-cloud.ks | 13 +++++++++++++ generic/fedora-18-i386-minimal.ks | 13 +++++++++++++ generic/fedora-18-i386.ks | 13 +++++++++++++ generic/fedora-18-x86_64-cloud.ks | 13 +++++++++++++ generic/fedora-18-x86_64-minimal.ks | 13 +++++++++++++ generic/fedora-18-x86_64.ks | 13 +++++++++++++ 8 files changed, 104 insertions(+) New commits: commit 7c1fa7d04380be00b2dfe4d2e6a4ef9180367259 Author: Matthew Miller <mattdm@xxxxxxxxxx> Date: Fri Jan 18 13:58:46 2013 -0600 Appliance-tools doesn't create the sysconfig kernel file, and without that, new kernels don't become the default diff --git a/ec2/fedora-18-i386-ec2.ks b/ec2/fedora-18-i386-ec2.ks index 5ff8d5b..41d607e 100644 --- a/ec2/fedora-18-i386-ec2.ks +++ b/ec2/fedora-18-i386-ec2.ks @@ -136,6 +136,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel-PAE +EOF +fi + # Uncomment this if you want to use cloud init but suppress the creation # of an "ec2-user" account. This will, in the absence of further config, # cause the ssh key from a metadata source to be put in the root account. diff --git a/ec2/fedora-18-x86_64-ec2.ks b/ec2/fedora-18-x86_64-ec2.ks index 72bfcf9..3250fd4 100644 --- a/ec2/fedora-18-x86_64-ec2.ks +++ b/ec2/fedora-18-x86_64-ec2.ks @@ -136,6 +136,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel +EOF +fi + # Uncomment this if you want to use cloud init but suppress the creation # of an "ec2-user" account. This will, in the absence of further config, # cause the ssh key from a metadata source to be put in the root account. diff --git a/generic/fedora-18-i386-cloud.ks b/generic/fedora-18-i386-cloud.ks index 8e7ef60..bf04d8b 100644 --- a/generic/fedora-18-i386-cloud.ks +++ b/generic/fedora-18-i386-cloud.ks @@ -139,6 +139,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel-PAE +EOF +fi + # Uncomment this if you want to use cloud init but suppress the creation # of an "ec2-user" account. This will, in the absence of further config, # cause the ssh key from a metadata source to be put in the root account. diff --git a/generic/fedora-18-i386-minimal.ks b/generic/fedora-18-i386-minimal.ks index c5fadc6..3a6720a 100644 --- a/generic/fedora-18-i386-minimal.ks +++ b/generic/fedora-18-i386-minimal.ks @@ -146,6 +146,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel-PAE +EOF +fi + echo "Zeroing out empty space." # This forces the filesystem to reclaim space from deleted files dd bs=1M if=/dev/zero of=/var/tmp/zeros || : diff --git a/generic/fedora-18-i386.ks b/generic/fedora-18-i386.ks index 6076a8a..062f641 100644 --- a/generic/fedora-18-i386.ks +++ b/generic/fedora-18-i386.ks @@ -133,6 +133,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel-PAE +EOF +fi + echo "Zeroing out empty space." # This forces the filesystem to reclaim space from deleted files dd bs=1M if=/dev/zero of=/var/tmp/zeros || : diff --git a/generic/fedora-18-x86_64-cloud.ks b/generic/fedora-18-x86_64-cloud.ks index 47854fe..36ce1a2 100644 --- a/generic/fedora-18-x86_64-cloud.ks +++ b/generic/fedora-18-x86_64-cloud.ks @@ -139,6 +139,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel +EOF +fi + # Uncomment this if you want to use cloud init but suppress the creation # of an "ec2-user" account. This will, in the absence of further config, # cause the ssh key from a metadata source to be put in the root account. diff --git a/generic/fedora-18-x86_64-minimal.ks b/generic/fedora-18-x86_64-minimal.ks index 6c08db1..4ae286b 100644 --- a/generic/fedora-18-x86_64-minimal.ks +++ b/generic/fedora-18-x86_64-minimal.ks @@ -146,6 +146,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel +EOF +fi + echo "Zeroing out empty space." # This forces the filesystem to reclaim space from deleted files dd bs=1M if=/dev/zero of=/var/tmp/zeros || : diff --git a/generic/fedora-18-x86_64.ks b/generic/fedora-18-x86_64.ks index 0854932..651eebf 100644 --- a/generic/fedora-18-x86_64.ks +++ b/generic/fedora-18-x86_64.ks @@ -133,6 +133,19 @@ echo . echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount +# appliance-creator does not make this important file. +if [ ! -e /etc/sysconfig/kernel ]; then +echo "Creating /etc/sysconfig/kernel." +cat <<EOF > /etc/sysconfig/kernel +# UPDATEDEFAULT specifies if new-kernel-pkg should make +# new kernels the default +UPDATEDEFAULT=yes + +# DEFAULTKERNEL specifies the default kernel package type +DEFAULTKERNEL=kernel +EOF +fi + echo "Zeroing out empty space." # This forces the filesystem to reclaim space from deleted files dd bs=1M if=/dev/zero of=/var/tmp/zeros || : _______________________________________________ cloud mailing list cloud@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/cloud