When using a zram device mounted and formatted as ext4 it should be mounted using
the "discard" option so that the actual allocated memory is freed and returned to
the system when files are deleted.
When using a zram device mounted and formatted as ext4 it should be mounted using
the "discard" option so that the actual allocated memory is freed and returned to
the system when files are deleted (as opposed to just flagging the delete in the
metadata, and leaving the underlying memory still allocated).
When running armbianmonitor -N/n and two or more routable network interfaces are detected create a dynamic dialog box to select which interface should be monitored. Otherwise proceed as usual. Also reverts #1106
I ran into an issue that `armbianmonitor -N` and `-n` spit out an `sed` error message and noticed this is caused when multiple network interfaces (like additional `tun`) are detected.
This is a quick and dirty fix and just grabs the first result to make it work.
* Fix monitormode run unprivileged
Running `armbianmonitor -m/M` non privileged leading into an no permission error as user do not have permission to read `cpuinfo_cur_freq`. This will prevent the error and adds a hint.
This was already implemented with https://github.com/armbian/build/pull/948,
before but never made it into the master branch yet. Probably because the
development branch has been abandoned in the meantime and it is to much effort
now to merge it into master.
It includes all the cleanup changes from commit 08743d3 and has been successfully
tested on an Odroid HC1.
In addition to what is currently in the `luks` branch the following improvments
where done/added:
1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked
after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock`
won't work and you'll run into:
https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass
Apart from that it might be useful to always run `update-initramfs` at the end
of the build process anyway, in case customize_image (userpatches) made some
changes to the initramfs tools configs.
2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it
might be desired by some users to disable enable SSH/dropbear access while
still having LUKS support. E.g. if they have a device that has a display
and keyboard.
3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair
is generated and for convenience copied to the output directory along with
the final image.
Ubuntu Bionic and newer Debian distributions have new enough dtc for
compiling overlays, so try to use distribution provided compiler if
kernel headers are not installed