Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux User Repository (http://www.linux-archive.org/archlinux-user-repository/)
-   -   PATCH: For selinux readonly filesystem error (http://www.linux-archive.org/archlinux-user-repository/64828-patch-selinux-readonly-filesystem-error.html)

Jerry Vonau 04-05-2008 07:03 PM

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


All times are GMT. The time now is 02:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.