Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] initramfs: fix symlink test
@ 2010-11-16 14:58 Mike Frysinger
  2010-11-16 15:09 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-11-16 14:58 UTC (permalink / raw)
  To: buildroot

We want to see if the symlink exists which means -L, not if the target
of the symlink exists.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 fs/initramfs/initramfs.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/initramfs/initramfs.mk b/fs/initramfs/initramfs.mk
index dd6aa94..594cc34 100644
--- a/fs/initramfs/initramfs.mk
+++ b/fs/initramfs/initramfs.mk
@@ -7,7 +7,7 @@
 #############################################################
 
 define ROOTFS_INITRAMFS_INIT_SYMLINK
-	if [ ! -e $(TARGET_DIR)/init ]; then \
+	if [ ! -L $(TARGET_DIR)/init ]; then \
 		ln -s sbin/init $(TARGET_DIR)/init; \
 	fi
 endef
@@ -20,4 +20,4 @@ endef
 
 ROOTFS_INITRAMFS_POST_TARGETS += linux26-rebuild-with-initramfs
 
-$(eval $(call ROOTFS_TARGET,initramfs))
\ No newline at end of file
+$(eval $(call ROOTFS_TARGET,initramfs))
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-17 20:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-16 14:58 [Buildroot] [PATCH] initramfs: fix symlink test Mike Frysinger
2010-11-16 15:09 ` Thomas Petazzoni
2010-11-16 15:27 ` Malte Starostik
2010-11-17  6:46 ` [Buildroot] [PATCH v2] initramfs: fix init symlink creation Mike Frysinger
2010-11-17 20:21   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox