Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/cpio

Buildroot aldot at uclibc.org 2 participants 3 messages Nov 22, 2006 – Nov 23, 2006

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2006-11-22 13:24:58 -0800 (Wed, 22 Nov 2006) New Revision: 16637

Log:

Modified:
trunk/buildroot/target/cpio/cpioroot.mk

Changeset:
Modified: trunk/buildroot/target/cpio/cpioroot.mk
===================================================================

buildroot/target/cpio/cpioroot.mk +1 -0
@@ -7,6 +7,7 @@
 CPIO_TARGET:=$(IMAGE).cpio
 
 cpioroot-init:
+	rm -f $(TARGET_DIR)/init
 	ln -s sbin/init $(TARGET_DIR)/init
 
 cpioroot: host-fakeroot makedevs cpioroot-init
#1 lore raw
Quoted 9 lines · aldot at uclibc.org

Author: aldot
Date: 2006-11-22 13:24:58 -0800 (Wed, 22 Nov 2006) New Revision: 16637

Log:

Modified:
trunk/buildroot/target/cpio/cpioroot.mk

Could you change it like this?

cpio/cpioroot.mk (working copy) renamed from cpio/cpioroot.mk (revision 16643) +1 -1
Index: target/cpio/cpioroot.mk
===================================================================
@@ -7,7 +7,7 @@
 CPIO_TARGET:=$(IMAGE).cpio
 
 cpioroot-init:
-       rm -f $(TARGET_DIR)/init
+       [ -e $(TARGET_DIR)/init ] || \
        ln -s sbin/init $(TARGET_DIR)/init
 
 cpioroot: host-fakeroot makedevs cpioroot-init

My skeleton now countains an init, and that should not be deleted. I initialy added the link as otherwise the initramfs does not work.

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#2 lore raw
Quoted 5 lines · Goetz Bock
Quoted 1 line · aldot at uclibc.org

Author: aldot

Could you change it like this?
...

Sorry, but VIM's et messed up the tabs again. :-(

cpio/cpioroot.mk (working copy) renamed from cpio/cpioroot.mk (revision 16643) +1 -1
Index: target/cpio/cpioroot.mk
===================================================================
@@ -7,7 +7,7 @@
 CPIO_TARGET:=$(IMAGE).cpio
 
 cpioroot-init:
-	rm -f $(TARGET_DIR)/init
+	[ -e $(TARGET_DIR)/init ] || \
 	ln -s sbin/init $(TARGET_DIR)/init
 
 cpioroot: host-fakeroot makedevs cpioroot-init
Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]