Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #273180
| From | Tim Woodall <debianuser@woodall.me.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Best practice for fresh install on UEFI with multiple disks? |
| Date | 2024-09-20 20:20 +0200 |
| Message-ID | <JoQox-dFm7-1@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <JomgN-dn5R-3@gated-at.bofh.it> <JoBzb-dwfB-3@gated-at.bofh.it> <JoGyR-dzhm-1@gated-at.bofh.it> <JoIU1-dAQo-3@gated-at.bofh.it> <JoJn3-dAZR-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Fri, 20 Sep 2024, Florent Rougon wrote: > Le 20/09/2024, Tim Woodall <debianuser@woodall.me.uk> a écrit: > >> Because the script will abort after the mount fails. >> >> root@dirac:~# cat test.sh >> #!/bin/bash >> >> set -e >> >> mount /boot/efi2 >> >> echo "do important stuff" >> >> root@dirac:~# ./test.sh >> mount: /boot/efi2: /dev/sda2 already mounted on /boot/efi2. >> dmesg(1) may have more information after failed mount system call. >> >> >> Note that do important stuff is never reached. > > That's interesting because my system doesn't behave the same. I had of > course checked, before writing my first message, that 'mount /boot/efi2' > returns exit status 0 even when /boot/efi2 is already mounted. With your > script (called foo.sh here), here is what I get: > > # mount | grep efi2 > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro) > # /tmp/foo.sh > do important stuff > # mount | grep efi2 > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro) > /dev/sda1 on /boot/efi2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro) > # > > Every invocation adds a new, duplicate entry in the output of 'mount'. > > This is Debian sid amd64; /usr/bin/mount is from 'mount' package version > 2.40.2-8. > That's very interesting and looks like it's probably a kernel change. Tim.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-09-19 02:30 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Andy Smith <andy@strugglers.net> - 2024-09-19 04:00 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-19 12:10 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 04:30 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-20 09:50 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 12:20 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-20 12:50 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Tim Woodall <debianuser@woodall.me.uk> - 2024-09-20 20:20 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-09-30 16:20 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Florent Rougon <f.rougon@free.fr> - 2024-09-30 18:30 +0200
Re: Best practice for fresh install on UEFI with multiple disks? Boyan Penkov <boyan.penkov@gmail.com> - 2024-11-01 01:10 +0100
csiph-web