diff --git a/iopsys-brcm63xx-arm/base-files/lib/preinit/01_delete_me b/iopsys-brcm63xx-arm/base-files/lib/preinit/01_delete_me deleted file mode 100644 index df74bfe1f0ae332a7ab8e9f3fb740391c5057574..0000000000000000000000000000000000000000 --- a/iopsys-brcm63xx-arm/base-files/lib/preinit/01_delete_me +++ /dev/null @@ -1,27 +0,0 @@ -# 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 diff --git a/iopsys-brcm63xx-arm/config/config b/iopsys-brcm63xx-arm/config/config index 86c1fd8db4b6290cc7d1837b0eddfcfaaa5ebcb1..09b227dc9d3e91222626eb56cca5147aae7e6195 100644 --- a/iopsys-brcm63xx-arm/config/config +++ b/iopsys-brcm63xx-arm/config/config @@ -29,8 +29,3 @@ CONFIG_BUSYBOX_CONFIG_CHRT=y # for debug purposes only. CONFIG_PACKAGE_bash=y - -############################################################################### -# -# add some space to play with in MB -CONFIG_TARGET_PREINITSPACE=2 diff --git a/iopsys-brcm63xx-arm/image/Config.in b/iopsys-brcm63xx-arm/image/Config.in index 9ed9d6ac8c323dc3e9d6abf8e5dc50d0b2269716..7ff9d06b566ece885551bd48d3618efc04015e0e 100644 --- a/iopsys-brcm63xx-arm/image/Config.in +++ b/iopsys-brcm63xx-arm/image/Config.in @@ -15,14 +15,6 @@ config TARGET_CUSTOMER 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 bool "Don't add 'first boot' marker to root FS" default n diff --git a/iopsys-brcm63xx-arm/image/Makefile b/iopsys-brcm63xx-arm/image/Makefile index 29c6648eeffcbd572826ec49cecfcb126ad3c724..537e268ac1798b4b0f55359419a685a9a03541f4 100644 --- a/iopsys-brcm63xx-arm/image/Makefile +++ b/iopsys-brcm63xx-arm/image/Makefile @@ -586,12 +586,6 @@ define Iopsys/Image/FIT # use iopsys rootfs instead of broadcom 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 -C package/feeds/broadcom/bcmkernel iopsys_firmware_image # restore original fs directory