Bug#742048: systemd-remount-fs.service fails for split-usr

Michael Biebl biebl at debian.org
Wed Jan 7 12:17:17 GMT 2015


control: tags -1 + patch

Am 06.01.2015 um 10:37 schrieb Michael Biebl:
> Am 06.01.2015 um 08:23 schrieb Martin Pitt:
>> Also, I think there is a simpler way to check if a dir is a
>> mountpoint: s1 = stat(dir), s2 = stat(parent(dir))
>> (i. e. dir + "/.."), and check
>>
>>  is_mount = (st.st_dev != st2.st_dev) ||
>>             (st.st_dev == st2.st_dev && st.st_ino == st2.st_ino);
> 
> .. this seems simpler indeed. So let's just use that. Thanks for the hint!
> 
>> That's the approach that /bin/mountpoint uses, and it avoids relying
>> on having /etc/mtab, /proc mounted, and doing the iteration.

Updated patch attached (tested with a split-usr setup and with both
initramfs-tools 0.116 and 0.118)



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd-remount-fs-v2.diff
Type: text/x-patch
Size: 1536 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150107/5b75619f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150107/5b75619f/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list