-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixup location of boot cdrom repository #2143
Conversation
The boot iso is sometimes mounted as /media/cdrom but more often as /media/sr0. I haven't been able to figure out why. Signed-off-by: Jan Dubois <[email protected]>
Note that this PR is mostly cosmetic, to get rid of this kind of warning:
All the packages from the boot ISO have already been installed during the boot process, so are not really needed for normal use-cases. I still wanted to silence the warning though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but I wonder why this can't be deterministic
Me too, but I couldn't figure it out. It is probably some kind of race condition. It sometimes (maybe 1 out of 4) happens on the first boot: lima-alpine:~# mount | grep media
/dev/sr0 on /media/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8) But on reboot it then looks like lima-alpine:~# mount | grep media
/dev/sr0 on /media/sr0 type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8) I don't think I've seen
lima-alpine:~# grep cdrom /etc/fstab
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0 I don't know how lima-alpine:~# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 15 20:25 /dev/cdrom -> sr0 We could try to remove the |
Thanks, 👍 on consistent |
This PR will be obsolete once lima-vm/alpine-lima#121 is used in the Alpine image. It removes the |
I've confirmed with the below script that with an empty #!/usr/bin/env bash
set -xeu
count=0
while [[ "$count" -lt 100 ]]; do
printf "\e[0;1;32mcount=%d\e[0m\n" "${count}"
limactl delete -f alpine || true
limactl start --tty=false template://alpine
mp=$(limactl shell alpine cat /proc/mounts | awk '$1 == "/dev/sr0" {print $2}')
if [[ $mp != /media/sr0 ]]; then
echo Mountpoint is $mp
exit 1
fi
count=$((count+1))
done I was worried that the I've also run a modified version of that script that creates the VM only once, and then just stops and restarts it. It confirmed that |
The boot iso is sometimes mounted as /media/cdrom but more often as /media/sr0.
I haven't been able to figure out why.