On Thu, Oct 1, 2015 at 4:16 PM, William Hubbs <[email protected]> wrote:
> On Thu, Oct 01, 2015 at 02:42:15PM -0400, Ian Stakenvicius wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Since this conversation is now technical rather than news-item
>> related, I've changed to a new thread.
>>
>> On 01/10/15 02:17 PM, J. Roeleveld wrote:
>> > On 1 October 2015 17:49:15 CEST, Mike Gilbert
>> > <[email protected]> wrote:
>> >>>>>>>> On 28/09/15 06:58 PM, William Hubbs wrote:
>> >>>>>>>>> Also, we are dropping the use of the -O switch
>> >>>>>>>>> for mount/umount -a. This is being dropped
>> >>>>>>>>> because it is util-linux specific and not
>> >>>>>>>>> compatible with busybox.
>> >>>>>>>>
>> >>
>> >> The _netdev option is really there to support things like
>> >> iSCSI, where you are mounting a filesystem like ext4 from a
>> >> block device which requires network connectivity.
>> >>
>> >> I think some changes are needed here, because this change to
>> >> localmount is quite like to break this usage.
>> >
>> > All,
>> >
>> > I had a thought. Not sure if this is possible and if it is, it
>> > would mean a change to the fstab for people using iSCSI.
>> >
>> > 1) Add an udev rule to name iSCSI devices differently. (Currently
>> > sd??, maybe to something like scs??) 2) Have 'localmount' ignore
>> > those entries in fstab. 3) Have 'netmount' (or similar) mount
>> > those entries.
>> >
>> > I haven't looked into the current scripts yet, so if this doesn't
>> > make any sense at all, let me know. I will investigate this more
>> > over the weekend.
>> >
>>
>> At this point, we need to verify the whole reason for its removal is
>> actually accurate -- it seems it was dropped due to bug 468600,
>> which is about -O [no]_netdev not being recognized by busybox mount.
>>  However, there are comments in the bug and notes in busybox
>> documentation which seems to indicate that -O support has been in
>> busybox since 1.20.2, and current stable is 1.23.1-r1..  If the
>> issue is still confirmed, then we can look into alternative methods
>> of handling iscsi.
>
> The original plan was to move to a point where everyone puts _netdev in
> their fstab for network mounts on Linux so that we don't have to track
> file system types like we do in OpenRC right now.  On Linux,
>
> mount -a -O _netdev
>
> would mount all network file systems and
>
> umount -a -O _netdev
>
> would unmount them.  On busybox, the last time I checked, umount -a
> doesn't support -O at all.
>
> I'm thinking the best way to handle iscsi, since it requires network
> connectivity, would be to just have nofail on the fstab entries for it
> instead of _netdev, that is if iscsi can pick up the mounts after
> network connectivity comes up.

That introduces a requirement for another init script to mount network
block devices, where previously it would have been covered by
netmount.

I don't think nofail is appropriate anyway; that flag is supposed to
indicate to mount that we don't care if the device does not exist.
However, once the network is up and the devices are supposed to have
been created, we do very much care if they do not exist.

Reply via email to