mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
initramfs: Don't overwrite $(TARGET_DIR)/init if it exists
Closes #2443 Allow use of custom init scripts. Signed-off-by: Simon Pasch <fpasch@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
de846f6e04
commit
c4cdcc3680
1
CHANGES
1
CHANGES
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#635: util-linux fails to build in 2009.08
|
#635: util-linux fails to build in 2009.08
|
||||||
#2239: netcat package installs its binary to target as avr32-linux...
|
#2239: netcat package installs its binary to target as avr32-linux...
|
||||||
|
#2443: Initramfs: Don't overwrite $(TARGET_DIR)/init if it exists
|
||||||
#2449: Minor fixes for squashfs makefile and correct PowerPC e500 ...
|
#2449: Minor fixes for squashfs makefile and correct PowerPC e500 ...
|
||||||
|
|
||||||
2010.08-rc1, Released July 30th, 2010:
|
2010.08-rc1, Released July 30th, 2010:
|
||||||
|
@ -13,8 +13,9 @@ INITRAMFS_TARGET:= #nothing
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
define ROOTFS_INITRAMFS_INIT_SYMLINK
|
define ROOTFS_INITRAMFS_INIT_SYMLINK
|
||||||
rm -f $(TARGET_DIR)/init
|
if [ ! -e $(TARGET_DIR)/init ]; then \
|
||||||
ln -s sbin/init $(TARGET_DIR)/init
|
ln -s sbin/init $(TARGET_DIR)/init; \
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ROOTFS_INITRAMFS_PRE_GEN_HOOKS += ROOTFS_INITRAMFS_INIT_SYMLINK
|
ROOTFS_INITRAMFS_PRE_GEN_HOOKS += ROOTFS_INITRAMFS_INIT_SYMLINK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user