Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] expand image size option #1257

Open
hadifarnoud opened this issue Feb 18, 2025 · 8 comments
Open

[feature request] expand image size option #1257

hadifarnoud opened this issue Feb 18, 2025 · 8 comments

Comments

@hadifarnoud
Copy link

I was hoping to build an expanded image with asu. is it possible?

I tried everything else for expanding the SD. It seems to corrupt the filesystem on reboot and it is a hassle. this would be an awesome option if it does not exist.

asu also throws an error if I put too many packages to install because it runs out of space (#1255). it would be useful to expand the image size for this reason as well

@aparcar
Copy link
Member

aparcar commented Feb 18, 2025

You can attach "rootfs_size_mb" to the request JSON. This isn't exposed in the Firmware Selector but please feel free to add a Pull Request for that feature.

@efahl
Copy link
Contributor

efahl commented Feb 18, 2025

Simplest way is to use the --rootfs-size option on owut, details at https://openwrt.org/docs/guide-user/installation/sysupgrade.owut#expanding_root_file_system

$ owut upgrade --rootfs-size 1024

@hadifarnoud
Copy link
Author

hadifarnoud commented Feb 18, 2025

the --rootfs-size option allow you to increase that up to 1024 MB, thus allowing more or bigger packages to be installed.

it's limited to 1GB, right? I still think having the proper sized img would be easier and safer to do.

@aparcar
Copy link
Member

aparcar commented Feb 18, 2025

The server is limited to 1GB, other server instances may offer larger sizes

@hadifarnoud
Copy link
Author

@aparcar it worked! I modified the js code to include the rootfs_size_mb.

{
  "profile": "rpi-4",
  "target": "bcm27xx/bcm2711",
  "packages": [
    "base-files",
    "bcm27xx-gpu-fw",
    "bcm27xx-utils",
    "ca-bundle",
    "dropbear",
    "e2fsprogs",
    "firewall4",
    "fstools",
    "kmod-fs-vfat",
    "kmod-nft-offload",
    "kmod-nls-cp437",
    "kmod-nls-iso8859-1",
    "kmod-sound-arm-bcm2835",
    "kmod-sound-core",
    "kmod-usb-hid",
    "libc",
    "libgcc",
    "libustream-mbedtls",
    "logd",
    "mkf2fs",
    "mtd",
    "netifd",
    "nftables",
    "odhcp6c",
    "odhcpd-ipv6only",
    "opkg",
    "partx-utils",
    "ppp",
    "ppp-mod-pppoe",
    "procd-ujail",
    "uci",
    "uclient-fetch",
    "urandom-seed",
    "cypress-firmware-43455-sdio",
    "brcmfmac-nvram-43455-sdio",
    "kmod-brcmfmac",
    "wpad-basic-mbedtls",
    "kmod-usb-net-lan78xx",
    "kmod-r8169",
    "iwinfo",
    "luci",
    "luci-app-p910nd",
    "p910nd",
    "brcmfmac-firmware-usb",
    "kmod-tun",
    "kmod-usb-core",
    "kmod-usb-hid",
    "kmod-usb-net",
    "kmod-usb-net-cdc-ether",
    "kmod-usb-printer",
    "kmod-usb-storage",
    "kmod-usb-storage-uas",
    "kmod-usb-xhci-hcd",
    "kmod-usb3",
    "kmod-usb2",
    "kmod-usb-core",
    "kmod-usb-hid",
    "kmod-usb-net",
    "usbutils",
    "docker",
    "docker-compose",
    "dockerd",
    "dnsmasq-full",
    "curl",
    "ca-bundle",
    "ip-full",
    "ruby",
    "ruby-yaml",
    "kmod-tun",
    "kmod-inet-diag",
    "unzip",
    "kmod-nft-tproxy",
    "luci-compat",
    "luci",
    "luci-base"
  ],
  "defaults": "",
  "version_code": "r28427-6df0e3d02a",
  "version": "24.10.0",
  "rootfs_size_mb": "1024"
  "diff_packages": true,
  "client": "ofs/v5.0.0-2-g4336d760"
}
Image

@MarkBeharrell
Copy link

I also found I kept hitting the "Impossible package" so although I could get larger images built I had no idea what packages caused me issues so I wrote a simple script that does some cross checking and gives you a package list that should be cleaned and without the renamed or missing pacakges.

OpenWRT-ASU-PackageChecker

@BeBiMa
Copy link

BeBiMa commented Mar 16, 2025

@hadifarnoud , where did you add the entry?

@hadifarnoud
Copy link
Author

I used js in chrome console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants