Open LukeShortCloud opened 2 years ago
Update: based on testing, using a Bash array is the best way to pass commands to chroot
and arch-chroot
.
It is important to note that manjaro-chroot
tries to be too clever for its own good. It will try to convert strings into an array which leads to unexpected behavior. For example:
Does not work:
manjaro-chroot /mnt crudini --set /home/stick/Desktop/steam_runtime.desktop "Desktop Entry" Name "Steam (Runtime) - GameMode"
Works:
arch-chroot /mnt crudini --set /home/stick/Desktop/steam_runtime.desktop "Desktop Entry" Name "Steam (Runtime) - GameMode"
Two options:
/mnt/etc/profile.d/<PROFILE>.sh
https://unix.stackexchange.com/questions/627872/how-to-pass-multiple-variables-and-functions-to-chroot-envrionment