mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-27 01:44:25 +00:00
When the IFS is set (e.g. to ",") the reading of /proc/consoles might
not correctly split the line into `console` and `rest`. Running
```
IFS=","
panic "error message"
```
will show:
```
Spawning shell within the initramfs as requested
sh: syntax error: unexpected "("
```
Therefore explicitly unset IFS in the panic function.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>