Skip to content

Commit

Permalink
ensure that /etc/init.d/S50crond is removed in post-build.sh because we
Browse files Browse the repository at this point in the history
do have our own crond startup script in S98 (fixes #2858).
  • Loading branch information
jens-maus committed Sep 23, 2024
1 parent bfad856 commit fa32875
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildroot-external/board/generic-aarch64/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=generic-aarch64" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/generic-x86_64/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=generic-x86_64" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
1 change: 1 addition & 0 deletions buildroot-external/board/lxc/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ echo "PLATFORM=lxc" >>"${TARGET_DIR}/VERSION"
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"
rm -f "${TARGET_DIR}/etc/init.d/S01InitZRAMSwap"
rm -f "${TARGET_DIR}/etc/init.d/S01USBGadgetMode"
rm -f "${TARGET_DIR}/etc/init.d/S03InitURandom"
Expand Down
1 change: 1 addition & 0 deletions buildroot-external/board/oci/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ echo "PLATFORM=oci" >>"${TARGET_DIR}/VERSION"
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"
rm -f "${TARGET_DIR}/etc/init.d/S01InitZRAMSwap"
rm -f "${TARGET_DIR}/etc/init.d/S01USBGadgetMode"
rm -f "${TARGET_DIR}/etc/init.d/S03seedrng"
Expand Down
3 changes: 3 additions & 0 deletions buildroot-external/board/odroid-c2/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=odroid-c2" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/odroid-c4/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=odroid-c4" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/odroid-n2/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=odroid-n2" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/ova/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=ova" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# copy grub boot.img to binaries dir
cp -f "${HOST_DIR}"/../build/grub2-2.??/build-i386-pc/grub-core/boot.img "${BINARIES_DIR}/"

Expand Down
3 changes: 3 additions & 0 deletions buildroot-external/board/rpi0/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=rpi0" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/rpi2/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=rpi2" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/rpi3/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=rpi3" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/rpi4/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=rpi4" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/rpi5/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=rpi5" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"
3 changes: 3 additions & 0 deletions buildroot-external/board/tinkerboard/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo "PLATFORM=tinkerboard" >>"${TARGET_DIR}/VERSION"
# fix some permissions
[ -e "${TARGET_DIR}/etc/monitrc" ] && chmod 600 "${TARGET_DIR}/etc/monitrc"

# remove unnecessary stuff from TARGET_DIR
rm -f "${TARGET_DIR}/etc/init.d/S50crond"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"

0 comments on commit fa32875

Please sign in to comment.