I'm currently building a RPi3 version of SolydX. For the Xfce desktop to
successfully load I need to change the boot parameters.
console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw
elevator=deadline fsck.repair=yes net.ifnames=0 rootwait cma=256M quiet
splash loglevel=0 vt.global_cursor_default=0 plymouth.ignore-serial-consoles
initramfs initrd.img-4.14.0-3-arm64 followkernel
Note: I needed the "cma=256M" in cmdline.txt. Any lower Xfce would
freeze on login.
As the OP mentioned, these files are now overwritten with each initramfs
update. I tried to create a hook script for initramfs-tools to restore
backup files to cmdline.txt and config.txt but so far I didn't succeed
In a desktop environment it regularly happens that initramfs is updated
and overwriting these files always results in a frozen desktop and that
is not something I can trust our users with.
Is there a way to prevent this behavior or does anybody know how to run
a script after initramfs has been updated?