Fix `grml2ram` when booted via `loopback.cfg`
authorMichael Schierl <schierlm@gmx.de>
Sat, 14 Jan 2023 20:56:38 +0000 (21:56 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 20:56:38 +0000 (21:56 +0100)
commit099f921c3368735a4162d07d6c4d8e324b524b72
tree7df9876930be8d33e0fd7f9db18c9becd08467ca
parent0ac4551b01b478003597737ae214a763144a3b98
Fix `grml2ram` when booted via `loopback.cfg`

When booted from a multiboot USB stick via loopback.cfg (or when using
`findiso=` kernel option manually), `/dev/loop0` is used for the ISO file and
`/dev/loop1` for the squashfs image.

Therefore, changing backing file descriptor of `/dev/loop0` will fail. Call `losetup` to find the name of
the loop device associaed to the squashfs image instead.
usr_sbin/grml2ram