initramfs: fix init symlink
authorWill Wagner <will_wagner@carallon.com>
Tue, 20 Apr 2010 14:31:01 +0000 (15:31 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Apr 2010 14:54:50 +0000 (16:54 +0200)
When initramfs was ported to the new fs structure the init symlink
macro was defined, but forgot to add it to PRE_GEN_HOOKS

Signed-off-by: Will Wagner <will_wagner@carallon.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/initramfs/initramfs.mk

index 9aaf1b04abcb09c71fe049ce15cb1a0c1dffd4d5..3e8156761b57367582732d549f79b312f1708b14 100644 (file)
@@ -17,6 +17,8 @@ define ROOTFS_INITRAMFS_INIT_SYMLINK
        ln -s sbin/init $(TARGET_DIR)/init
 endef
 
+ROOTFS_INITRAMFS_PRE_GEN_HOOKS += ROOTFS_INITRAMFS_INIT_SYMLINK
+
 define ROOTFS_INITRAMFS_CMD
        $(SHELL) fs/initramfs/gen_initramfs_list.sh -u 0 -g 0 $(TARGET_DIR) > $$@
 endef