FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-19-2009, 10:25 PM
Jeremy Katz
 
Default After setting up our random UUID, inform the storage layer

The storage layer keeps track of uuids for filesystems, so we need
to update it if we change the uuid
---
livecd.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/livecd.py b/livecd.py
index d05dc79..96610cd 100644
--- a/livecd.py
+++ b/livecd.py
@@ -29,6 +29,7 @@ import stat
import shutil
import time
import subprocess
+import storage

import selinux

@@ -238,6 +239,13 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
stdout="/dev/tty5",
stderr="/dev/tty5",
searchPath = 1)
+ # and now set the uuid in the storage layer
+ storage.udev.udev_settle()
+ rootDevice.updateSysfsPath()
+ iutil.notify_kernel("/sys%s" %rootDevice.sysfsPath)
+ info = storage.udev.udev_get_block_device("/sys%s" % rootDevice.sysfsPath)
+ rootDevice.format.uuid = storage.udev.udev_device_get_uuid(info)
+ log.info("reset the rootdev (%s) to have a uuid of %s" %(rootDevice.sysfsPath, rootDevice.format.uuid))

# for any filesystem that's _not_ on the root, we need to handle
# moving the bits from the livecd -> the real filesystems.
--
1.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org