[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Fedora-livecd-list] 2 issues fixed?



Chitlesh GOORAH wrote:

Did anyone already fixed:


#2: mv: unabled to move /livecd/ramfs/rc.d/rc.local/****
Try this patch attached, in both standard and debugging modes.
This is for install/rc.readonly-livecd.

Tell me how it goes, or any problems you see with it.

J. Hartline
--- install/rc.readonly-livecd.orig	2006-02-16 16:30:05.000000000 -0600
+++ install/rc.readonly-livecd	2006-02-16 16:28:12.000000000 -0600
@@ -38,8 +38,13 @@
 	mount_file /etc
 	
 	echo "Moving /etc/rc.d to /livecd/ramfs (we need this for safe shutdown)"
-        mv /etc/rc.d /livecd/ramfs/
-        ln -s /livecd/ramfs/rc.d /etc/rc.d
+        if [ "${INITRD_DBG}" = "x" ]; then
+	     mv /etc/rc.d /livecd/ramfs/
+             ln -s /livecd/ramfs/rc.d /etc/rc.d
+        else
+             mv /etc/rc.d /livecd/ramfs/ >/dev/null 2>&1
+	     ln -s /livecd/ramfs/rc.d /etc/rc.d
+        fi
 
 	# Can be changed by dhcp:
 	if [ -f /initrd/tmp/dhclient.leases ]; then

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]