Skip to content
Snippets Groups Projects
Commit 62279cc8 authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon:
Browse files

Revert "brcm: Add a file to get some space on /."

This reverts commit 73c8ec88.
This was a development-only feature that is no longer needed now that we
have a working overlay.
parent 3e6b3b3d
No related branches found
No related tags found
No related merge requests found
# delete file to get som RW space
do_get_some_space()
{
if [ -f /delete_me_for_some_space ]
then
echo "Removing /delete_me_for_some_space and remounting / RW. Development feature only!!!!!!"
if ! rm -f /delete_me_for_some_space 2>/dev/null
then
mount -o remount,rw /
# If the root is on a ext4 filesystem and if so do a resize (rootfs needs to be RW)
# to use the full partition.
if cat /proc/mounts | grep root | grep ext4
then
echo "/ is a EXT4 filesystem. will do a resize to get some space"
root_dev=$(cat /proc/cmdline | sed -e "s/root=\([^ ]*\).*/\1/")
resize2fs $root_dev
fi
rm -f /delete_me_for_some_space
fi
fi
}
boot_hook_add preinit_essential do_get_some_space
...@@ -29,8 +29,3 @@ CONFIG_BUSYBOX_CONFIG_CHRT=y ...@@ -29,8 +29,3 @@ CONFIG_BUSYBOX_CONFIG_CHRT=y
# for debug purposes only. # for debug purposes only.
CONFIG_PACKAGE_bash=y CONFIG_PACKAGE_bash=y
###############################################################################
#
# add some space to play with in MB
CONFIG_TARGET_PREINITSPACE=2
...@@ -15,14 +15,6 @@ config TARGET_CUSTOMER ...@@ -15,14 +15,6 @@ config TARGET_CUSTOMER
A Customer id that is added to software file name A Customer id that is added to software file name
config TARGET_PREINITSPACE
int
prompt "Reserve space on root filesystem"
default 0
help
Set this to the number of megabytes to reserve on / for writing
config TARGET_NO_1STBOOT_MARK config TARGET_NO_1STBOOT_MARK
bool "Don't add 'first boot' marker to root FS" bool "Don't add 'first boot' marker to root FS"
default n default n
......
...@@ -586,12 +586,6 @@ define Iopsys/Image/FIT ...@@ -586,12 +586,6 @@ define Iopsys/Image/FIT
# use iopsys rootfs instead of broadcom # use iopsys rootfs instead of broadcom
cp -a $(BUILD_DIR_ROOT)/. $(PROFILE_DIR)/fs cp -a $(BUILD_DIR_ROOT)/. $(PROFILE_DIR)/fs
# cp -a $(PROFILE_DIR)/fs_bcm $(PROFILE_DIR)/fs
ifneq ($(CONFIG_TARGET_PREINITSPACE),0)
# create some rw space on target
dd if=/dev/urandom bs=1M count=$(CONFIG_TARGET_PREINITSPACE) of=$(PROFILE_DIR)/fs/delete_me_for_some_space
endif
# cd $(TOPDIR) ;$(MAKE) -f build/Makefile iopsys_firmware_image # cd $(TOPDIR) ;$(MAKE) -f build/Makefile iopsys_firmware_image
cd $(TOPDIR); make -C package/feeds/broadcom/bcmkernel iopsys_firmware_image cd $(TOPDIR); make -C package/feeds/broadcom/bcmkernel iopsys_firmware_image
# restore original fs directory # restore original fs directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment