ecdye / zram-config

A complete zram-config utility for swap, directories, and logs to reduce SD, NAND and eMMC block wear.
MIT License
447 stars 54 forks source link

grep: /boot/cmdline.txt: No such file or directory #29

Closed bitinerant closed 4 years ago

bitinerant commented 4 years ago

On Ubuntu 18.04 server for Raspberry Pi, the cmdline.txt file is located at /boot/firmware/cmdline.txt rather than /boot/cmdline.txt. I'm not yet sure what issues this causes.

Here is the output of sudo systemctl status zram-config:

zram-config.service - zram-config
   Loaded: loaded (/etc/systemd/system/zram-config.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2019-10-18 17:18:23 UTC; 1min 2s ago
  Process: 1181 ExecStart=/usr/local/bin/zram-config start (code=exited, status=0/SUCCESS)
 Main PID: 1181 (code=exited, status=0/SUCCESS)

Oct 18 17:18:22 rpi systemd[1]: Starting zram-config...
Oct 18 17:18:22 rpi zram-config[1181]: grep: /boot/cmdline.txt: No such file or directory
Oct 18 17:18:22 rpi zram-config[1181]: grep: /usr/local/share/zram-config/zram-device-list: No such file or directo
Oct 18 17:18:22 rpi zram-config[1181]: mv: cannot stat '/usr/local/share/zram-config/zram-device-list.new': No such
Oct 18 17:18:22 rpi zram-config[1181]: mv: cannot stat '/usr/local/share/zram-config/zram-device-list.new': No such
Oct 18 17:18:22 rpi zram-config[1181]: stat: cannot stat 'stat': No such file or directory
Oct 18 17:18:22 rpi zram-config[1181]: stat: cannot stat 'stat': No such file or directory
Oct 18 17:18:22 rpi zram-config[1181]: stat: cannot stat 'stat': No such file or directory
Oct 18 17:18:23 rpi systemd[1]: Started zram-config.
StuartIanNaylor commented 4 years ago

You will just have to do and edit for me if using Ubuntu