Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 freswa (frederik) - Sunday, 13 September 2020, 13:35 GMT
Task Type Bug Report
Category System
Status Assigned
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
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

Loading...