Openhabian ZRAM Installation fails (make overlayfs)

Hi,

this is a fresh installation of newest openhabian 64 bit with openhab 4.2.0 on a RPI4 4GB.
During initial installation, ZRAM installation failed.

2024-07-29_19:06:19_CEST [openHABian] Installing zram… FAILED

I tried again with debugmode=maximum in openhabian-config, but same result.
Here is the output for overlayfs

  • echo -n '2024-07-30_21:31:19_CEST [openHABian] Setting up OverlayFS… ’
    2024-07-30_21:31:19_CEST [openHABian] Setting up OverlayFS… + cond_redirect make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools \033[39;49;00m’

$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools

  • make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
    make: Entering directory ‘/opt/zram/zram-config/overlayfs-tools’
    make: *** No targets specified and no makefile found. Stop.
    make: Leaving directory ‘/opt/zram/zram-config/overlayfs-tools’
  • return 2
  • echo ‘FAILED (make overlayfs)’
    FAILED (make overlayfs)

And this is the complete log:

  • whiptail --title ‘Install zram’ --yes-button Continue --no-button Cancel --yesno ‘You are about to activate the zram feature.\nBe aware you do this at your own risk of data loss.\nPlease check out the “zram status” thread at ZRAM status before proceeding.’ 10 80
  • has_lowmem
  • local totalMemory
    ++ awk ‘/MemTotal/ {print $2}’ /proc/meminfo
  • totalMemory=3883064
  • [[ -z 3883064 ]]
  • [[ 3883064 -lt 900000 ]]
  • return 1
  • dpkg -s make
  • install_zram_code /opt/zram
  • local zramGit=GitHub - ecdye/zram-config: A complete zram-config utility for swap, directories, and logs to reduce SD, NAND and eMMC block wear.
    ++ timestamp
    ++ printf ‘%(%F_%T_%Z)T\n’ -1
  • echo -n '2024-07-30_21:31:18_CEST [openHABian] Installing zram code… ’
    2024-07-30_21:31:18_CEST [openHABian] Installing zram code… + cond_redirect mkdir -p /opt/zram
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ mkdir -p /opt/zram \033[39;49;00m’

$ mkdir -p /opt/zram

  • mkdir -p /opt/zram
  • return 0
  • [[ -d /opt/zram/zram-config ]]
  • cond_redirect update_git_repo /opt/zram/zram-config openHAB
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ update_git_repo /opt/zram/zram-config openHAB \033[39;49;00m’

$ update_git_repo /opt/zram/zram-config openHAB

  • update_git_repo /opt/zram/zram-config openHAB
  • local branch
  • local path
  • branch=openHAB
  • path=/opt/zram/zram-config
    ++ timestamp
    ++ printf ‘%(%F_%T_%Z)T\n’ -1
    ++ basename /opt/zram/zram-config
  • echo -n '2024-07-30_21:31:18_CEST [openHABian] Updating zram-config, openHAB branch from git… ’
    2024-07-30_21:31:18_CEST [openHABian] Updating zram-config, openHAB branch from git… + cond_redirect git -C /opt/zram/zram-config fetch origin
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ git -C /opt/zram/zram-config fetch origin \033[39;49;00m’

$ git -C /opt/zram/zram-config fetch origin

  • git -C /opt/zram/zram-config fetch origin
  • return 0
  • cond_redirect git -C /opt/zram/zram-config fetch --tags --force --prune
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ git -C /opt/zram/zram-config fetch --tags --force --prune \033[39;49;00m’

$ git -C /opt/zram/zram-config fetch --tags --force --prune

  • git -C /opt/zram/zram-config fetch --tags --force --prune
  • return 0
  • cond_redirect git -C /opt/zram/zram-config reset --hard origin/openHAB
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ git -C /opt/zram/zram-config reset --hard origin/openHAB \033[39;49;00m’

$ git -C /opt/zram/zram-config reset --hard origin/openHAB

  • git -C /opt/zram/zram-config reset --hard origin/openHAB
    HEAD is now at 2347238 Add openHAB specific changes
  • return 0
  • cond_redirect git -C /opt/zram/zram-config clean --force -x -d
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ git -C /opt/zram/zram-config clean --force -x -d \033[39;49;00m’

$ git -C /opt/zram/zram-config clean --force -x -d

  • git -C /opt/zram/zram-config clean --force -x -d
  • return 0
  • cond_redirect git -C /opt/zram/zram-config checkout openHAB
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ git -C /opt/zram/zram-config checkout openHAB \033[39;49;00m’

$ git -C /opt/zram/zram-config checkout openHAB

  • git -C /opt/zram/zram-config checkout openHAB
    Already on ‘openHAB’
    Your branch is up to date with ‘origin/openHAB’.
  • return 0
  • echo OK
    OK
  • return 0
  • echo OK
    OK
    ++ timestamp
    ++ printf ‘%(%F_%T_%Z)T\n’ -1
  • echo -n '2024-07-30_21:31:19_CEST [openHABian] Setting up OverlayFS… ’
    2024-07-30_21:31:19_CEST [openHABian] Setting up OverlayFS… + cond_redirect make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools \033[39;49;00m’

$ make --always-make --directory=/opt/zram/zram-config/overlayfs-tools

  • make --always-make --directory=/opt/zram/zram-config/overlayfs-tools
    make: Entering directory ‘/opt/zram/zram-config/overlayfs-tools’
    make: *** No targets specified and no makefile found. Stop.
    make: Leaving directory ‘/opt/zram/zram-config/overlayfs-tools’
  • return 2
  • echo ‘FAILED (make overlayfs)’
    FAILED (make overlayfs)
  • return 1
  • ‘[’ 1 -ne 0 ‘]’
  • whiptail --msgbox ‘There was an error or interruption during the execution of:\n “30 | System Settings”\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or openhabian/docs/openhabian-DEBUG.md at main · openhab/openhabian · GitHub how to proceed.’ 14 80

Could you please help?

Any idea anyone?

I tried again with a fresh image out of raspberry pi imager, 32 Bit for RPI3. But same issue there… Seems to be a bug in openhabian version. Should I open an issue?

yes

Okay, done: ZRAM Installation failed (make overlayfs) · Issue #1894 · openhab/openhabian · GitHub

If you need any assistance, please let me know. I have a test system on RPI3 here right now, which has no other purpose.