genfstab doesn't resolve directories correctly when using mount -o bind
Task Info (Flyspray) | |
---|---|
Opened By | Franz Trischberger (fft2000) |
Task ID | 66166 |
Type | Bug Report |
Project | Arch Linux |
Category | System |
Version | None |
OS | All |
Opened | 2020-04-08 06:19:32 UTC |
Status | Assigned |
Assignee | Eli Schwartz (eschwartz) |
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.