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 > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 04-05-2008, 07:03 PM
Jerry Vonau
 
Default PATCH: For selinux readonly filesystem error

getting rid of the symlink to /mnt/runtime/etc/selinux fixes:

12:28:33 WARNING : Failed to create /etc/selinux/config: Read-only file
system
12:28:33 WARNING : Failed to create
/etc/selinux/targeted/contexts/customizable_types: Read-only file system


Jerry

diff -up ./loader.c.orig ./loader.c
--- ./loader.c.orig 2008-04-05 12:24:25.000000000 -0500
+++ ./loader.c 2008-04-05 12:39:57.000000000 -0500
@@ -1734,13 +1734,14 @@ int main(int argc, char ** argv) {
url = doLoaderMain("/mnt/source", &loaderData, modInfo);

if (!FL_TESTING(flags)) {
- int ret;
+/* int ret; */

/* 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");
+/* ret = symlink("/mnt/runtime/etc/selinux", "/etc/selinux"); */
+
copyDirectory("/mnt/runtime/etc","/etc", copyWarnFn, copyErrorFn);
copyDirectory("/mnt/runtime/var","/var", copyWarnFn, copyErrorFn);
}
_______________________________________________
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 02:08 PM.

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