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
[email protected]
https://www.redhat.com/mailman/listinfo/ovirt-devel

Reply via email to