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 10-13-2010, 03:11 PM
Chris Lumens
 
Default migrate_runtime_directory no longer does anything useful.

---
loader/loader.c | 40 +---------------------------------------
1 files changed, 1 insertions(+), 39 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index a3d6133..dab0f9d 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1572,31 +1572,6 @@ static int manualDeviceCheck(struct loaderData_s *loaderData) {
return 0;
}

-/* JKFIXME: I don't really like this, but at least it isolates the ifdefs */
-/* Either move dirname to %s_old or unlink depending on arch (unlink on all
- * !s390{,x} arches). symlink to /mnt/runtime/dirname. dirname *MUST* start
- * with a '/' */
-static void migrate_runtime_directory(char * dirname) {
- char * runtimedir;
- int ret;
-
- checked_asprintf(&runtimedir, "/mnt/runtime%s", dirname);
-
- if (!access(runtimedir, X_OK)) {
- if (unlink(dirname) == -1) {
- char * olddir;
-
- checked_asprintf(&olddir, "%s_old", dirname);
-
- ret = rename(dirname, olddir);
- free(olddir);
- }
- ret = symlink(runtimedir, dirname);
- }
- free(runtimedir);
-}
-
-
static int hasGraphicalOverride() {
int i;

@@ -1767,7 +1742,7 @@ static void loadScsiDhModules(void)
}

int main(int argc, char ** argv) {
- int i, rc, ret, pid, status;
+ int i, rc, pid, status;
int isDevelMode = 0;

struct stat sb;
@@ -2110,14 +2085,6 @@ int main(int argc, char ** argv) {

url = doLoaderMain(&loaderData, modInfo);

- /* unlink dirs and link to the ones in /mnt/runtime */
- migrate_runtime_directory("/usr");
- migrate_runtime_directory("/lib");
- migrate_runtime_directory("/lib64");
- ret = symlink("/mnt/runtime/etc/selinux", "/etc/selinux");
- copyDirectory("/mnt/runtime/etc","/etc", NULL, copyErrorFn);
- copyDirectory("/mnt/runtime/var","/var", NULL, copyErrorFn);
-
/* now load SELinux policy before exec'ing anaconda and the shell
* (if we're using SELinux) */
if (FL_SELINUX(flags)) {
@@ -2168,11 +2135,6 @@ int main(int argc, char ** argv) {

mlLoadModuleSet("raid0:raid1:raid5:raid6:raid456:r aid10:linear:dm-mod:dm-zero:dm-mirror:dm-snapshot:dm-multipath:dm-round-robin:dm-crypt:cbc:sha256:lrw:xts");

- if (!access("/mnt/runtime/usr/lib/libunicode-lite.so.1", R_OK))
- setenv("LD_PRELOAD", "/mnt/runtime/usr/lib/libunicode-lite.so.1", 1);
- if (!access("/mnt/runtime/usr/lib64/libunicode-lite.so.1", R_OK))
- setenv("LD_PRELOAD", "/mnt/runtime/usr/lib64/libunicode-lite.so.1", 1);
-
argptr = anacondaArgs;

path = getenv("PATH");
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 10-14-2010, 03:06 PM
Ales Kozumplik
 
Default migrate_runtime_directory no longer does anything useful.

On 10/13/2010 05:11 PM, Chris Lumens wrote:

---
loader/loader.c | 40 +---------------------------------------
1 files changed, 1 insertions(+), 39 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index a3d6133..dab0f9d 100644
--- a/loader/loader.c
+++ b/loader/loader.c


Ack.

Ales

_______________________________________________
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:50 AM.

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