Joey Boggs
2009-Sep-28 14:22 UTC
[Ovirt-devel] [PATCH node-image] update rwtab entries for /live, /boot, and /var/lib/random-seed
This fixes a few boot,install and reboot items
- creates and adds entries in rwtab.d/ovirt for /live and /boot
- unblacklists /boot so the directory is there on boot
- touches random-seed to fix a reboot error
---
common-blacklist.ks | 2 +-
common-post.ks | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/common-blacklist.ks b/common-blacklist.ks
index 6a03f1f..0dd0332 100644
--- a/common-blacklist.ks
+++ b/common-blacklist.ks
@@ -89,7 +89,7 @@ find /usr/share/zoneinfo -regextype egrep -type f \
! -regex ".*/UTC|.*/GMT" -exec $RM {} \;
echo "Removing blacklisted files and directories"
-blacklist="/boot /etc/alsa /etc/pki /usr/share/hwdata/MonitorsDB \
+blacklist="/etc/alsa /etc/pki /usr/share/hwdata/MonitorsDB \
/usr/share/hwdata/oui.txt /usr/share/hwdata/videoaliases \
/usr/share/firstboot /usr/share/lua /usr/share/kde4 /usr/share/pixmaps \
/usr/share/hwdata/videodrivers /usr/share/icons /usr/share/fedora-release \
diff --git a/common-post.ks b/common-post.ks
index 44a0270..fcff200 100644
--- a/common-post.ks
+++ b/common-post.ks
@@ -148,6 +148,9 @@ EOF
rm -f /etc/cron.daily/logrotate
# comment out /etc/* entries in rwtab to prevent overlapping mounts
+touch /var/lib/random-seed
+mkdir /live
+mkdir /boot
sed -i '/^files \/etc*/ s/^/#/' /etc/rwtab
cat > /etc/rwtab.d/ovirt <<EOF
files /etc
@@ -157,4 +160,6 @@ files /var/empty/sshd/etc/localtime
files /var/lib/dbus
files /var/lib/libvirt
empty /mnt
+empty /live
+empty /boot
EOF
--
1.6.2.5
Darryl L. Pierce
2009-Sep-30 15:16 UTC
[Ovirt-devel] [PATCH node-image] update rwtab entries for /live, /boot, and /var/lib/random-seed
On Mon, Sep 28, 2009 at 10:22:53AM -0400, Joey Boggs wrote:> This fixes a few boot,install and reboot items > - creates and adds entries in rwtab.d/ovirt for /live and /boot > - unblacklists /boot so the directory is there on boot > - touches random-seed to fix a reboot error > > --- > common-blacklist.ks | 2 +- > common-post.ks | 5 +++++ > 2 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/common-blacklist.ks b/common-blacklist.ks > index 6a03f1f..0dd0332 100644 > --- a/common-blacklist.ks > +++ b/common-blacklist.ks > @@ -89,7 +89,7 @@ find /usr/share/zoneinfo -regextype egrep -type f \ > ! -regex ".*/UTC|.*/GMT" -exec $RM {} \; > > echo "Removing blacklisted files and directories" > -blacklist="/boot /etc/alsa /etc/pki /usr/share/hwdata/MonitorsDB \ > +blacklist="/etc/alsa /etc/pki /usr/share/hwdata/MonitorsDB \ > /usr/share/hwdata/oui.txt /usr/share/hwdata/videoaliases \ > /usr/share/firstboot /usr/share/lua /usr/share/kde4 /usr/share/pixmaps \ > /usr/share/hwdata/videodrivers /usr/share/icons /usr/share/fedora-release \ > diff --git a/common-post.ks b/common-post.ks > index 44a0270..fcff200 100644 > --- a/common-post.ks > +++ b/common-post.ks > @@ -148,6 +148,9 @@ EOF > rm -f /etc/cron.daily/logrotate > > # comment out /etc/* entries in rwtab to prevent overlapping mounts > +touch /var/lib/random-seed > +mkdir /live > +mkdir /boot > sed -i '/^files \/etc*/ s/^/#/' /etc/rwtab > cat > /etc/rwtab.d/ovirt <<EOF > files /etc > @@ -157,4 +160,6 @@ files /var/empty/sshd/etc/localtime > files /var/lib/dbus > files /var/lib/libvirt > empty /mnt > +empty /live > +empty /boot > EOF > -- > 1.6.2.5 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-develACK. I built a new ISO, put it on install media and was able to install the node to my test server. -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Virtual Machine Management - http://www.ovirt.org/ Is fearr Gaeilge bhriste n? B?arla cliste. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090930/ad2545ee/attachment.sig>