Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/github/pr/15'
Browse files Browse the repository at this point in the history
Quoting from the PR at #15:

| If I put the ISO to hard disk (e.g sda1) and also label that GRMLCFG I get an error:
|
| [  OK  ] Searching for device(s) labeled with GRMLCFG. (Disable this via boot option: noautoconfig)
| [  OK  ] debs, config, scripts are read from /dev/sda1.
| [ WARN ] /dev/sda1 already mounted on /run/live/findiso
| /usr/lib/live/mount/findiso
| [  OK  ] Debs, config, scripts (if present) will be read from /run/live/findiso
| /usr/lib/live/mount/findiso.
| config_config:cd:4: no such file or directory: /run/live/findiso\n/usr/lib/live/mount/findiso
| [  OK  ] Trying to execute /run/live/findiso
| /usr/lib/live/mount/findiso/scripts/
| sh: 1: /run/live/findiso: Permission denied
| sh: 2: /usr/lib/live/mount/findiso/scripts/: not found
| [ WARN ] No soundcard present, skipping mixer settings therefore.
| [  OK  ] Starting gpm in background.
|
| The findiso mechanism mounts sda1 twice and when trying to find that mountpoint the script fails.
| I suggest to pick the first mountpoint.
  • Loading branch information
mika committed Oct 4, 2023
2 parents 541958e + deb3d70 commit 6dbba29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoconfig.functions
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ else
else
eindent
einfo "debs, config, scripts are read from $DCSDEVICE." ; eend 0
DCSDIR="$(< /proc/mounts awk -v DCSDEV=$DCSDEVICE '{if ($1 == DCSDEV) { print $2 }}')"
DCSDIR="$(< /proc/mounts awk -v DCSDEV=$DCSDEVICE '{if ($1 == DCSDEV) { print $2; exit }}')"
if [ -n "$DCSDIR" ]; then
ewarn "$DCSDEVICE already mounted on $DCSDIR"; eend 0
else
Expand Down

0 comments on commit 6dbba29

Please sign in to comment.