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

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



On 2/16/06, J. Hartline <jasperhartline adelphia net> wrote:
> 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
>

your patch was rejected somehow. Ive created again the patch based on
yours. Its attached

--
http://clunixchit.blogspot.com
--- /usr/local/share/kadischi/install/rc.readonly-livecd	2006-02-18 00:35:10.000000000 +0100
+++ /home/chitlesh/rc.readonly-livecd	2006-02-18 00:38:01.000000000 +0100
@@ -7,55 +7,60 @@
 }
 
 from_linuxrc() {
-	
+
 	echo "Mounting tmpfs on /livecd/tmpfs"
 	mount -t tmpfs none /livecd/tmpfs
 
 	echo "Mounting ramfs on /livecd/ramfs"
 	mount -t ramfs none /livecd/ramfs
-	
+
 	echo "Extracting files to /livecd/tmpfs"
 	tar --directory /livecd/tmpfs -zxf /livecd/kadischi.tar.gz
-	
+
 	echo "Binding files from /livecd/tmpfs to their original locations"
 	# Set up temporary file directories
 	mount_file /tmp
 	chmod a+rwxt /livecd/tmpfs/tmp
-	
+
 	mount_file /var
 	mount -n --bind /livecd/moved/var/lib/rpm /var/lib/rpm
-	
+
 	if [ ! -d /livecd/tmpfs/var/tmp ]; then
 		mkdir /livecd/tmpfs/var/tmp
 	fi
 	chmod a+rwxt /livecd/tmpfs/var/tmp
-	
+
 	mount_file /root
 	mount_file /home
 	mount_file /opt
 	mount_file /mnt
 	mount_file /media
 	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
 		cp /initrd/tmp/dhclient.leases /var/lib/dhcp/dhclient-eth0.leases
 	fi
-	
+
 }
 
 from_init() {
 	umount /initrd/tmp
 	umount /initrd
-	
+
 	# Clean out hardware state so we start fresh
 	> /etc/modprobe.conf
 	> /etc/sysconfig/hwconf
-	
+
 	# scan for local swap
 	/usr/sbin/scanswap
 }

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