FS#66166 - [arch-install-scripts] genfstab doesn't resolve directories correctly when using mount -o bind

Attached to Project: Arch Linux
Opened by Franz Trischberger (fft2000) - Wednesday, 08 April 2020, 06:19 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 18 September 2023, 17:53 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I installed arch alongside Gentoo on my laptop.
The Gentoo partition contains my /home that I want to reuse in arch.
arch is on sda7, gentoo (including the /home) is on sda6.
Therefor I did
==
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/media/sda6
mount -o bind /mnt/media/sda6/home /mnt/home
==
This resulted in /home being not mounted after a reboot because the source for the bind mount was not resolved correctly:
==
# /dev/sda7
UUID=13f863fd-fd2e-4aa3-90a1-42c92a29dd24 / ext4 rw,relatime 0 1

# /dev/sda6
UUID=fabfc099-6cf9-4de0-a9bf-2854965d0b72 /media/sda6 ext4 rw,relatime 0 2

# /mnt/media/sda6/home
/mnt/media/sda6/home /home none rw,bind 0
==
The last line of course should be /media/sda6/home, the leading /mnt is wrong.

Of course I finally found the error and manually corrected it so the system runs as expected now, but genfstab could try better to catch that case.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 18 September 2023, 17:53 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/a rch-install-scripts/issues/62
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...