Refracta Development, Scripts, etc.
Post a reply

(SOLVED) proc line in fstab

Fri Jan 27, 2017 3:40 pm

Is there a reason this line is still added to fstab on installations?

Code:
proc                  /proc   proc   defaults   0   0


It is deprecated as stated in the Debian fstab wiki:

It is not necessary to list /proc and /sys in the fstab unless some special options are needed. The boot system will always mount them.


It raises hell with systemd when you add anything new to fstab after installations and removing that line eliminates a 90 second delay for a Start Job on bootup ... You can read about the issue here and also here at VSIDO
Last edited by vsido on Mon Jan 30, 2017 4:42 pm, edited 1 time in total.

Re: proc line in fstab

Fri Jan 27, 2017 5:29 pm

Thanks! You'll see that change in the next version. Meanwhile, change
Code:
echo -e "proc\t\t/proc\tproc\tdefaults\t0\t0
$install_part\t/\t$fs_type_os\tdefaults,noatime\t0\t1" >> /target/etc/fstab

to this:
Code:
echo -e "$install_part\t/\t$fs_type_os\tdefaults,noatime\t0\t1" >> /target/etc/fstab


Do I need to add a "Make no fstab" option for the systemd users?

Re: proc line in fstab

Fri Jan 27, 2017 5:49 pm

Thank you...

No I do not think a new option is necessary.. it looks like that is the only line that matters from a fstab and systemd perspective... every systemd user is stating that removing that line is the easiest solution

I appreciate this fsmithred

Re: proc line in fstab

Fri Jan 27, 2017 8:02 pm

Are you saying that systemd doesn't use fstab?

... ah, does use it, put proc gives problems?
(but then: what doesn't give problems?)

Re: proc line in fstab

Fri Jan 27, 2017 9:14 pm

Yes nadir. The unneeded proc line causes systemd to pause 90 seconds at boot doing a Start Job because it knows proc is not necessary

Not sure what you mean by the last statement

Re: proc line in fstab

Fri Jan 27, 2017 9:58 pm

Systemd is moving toward having no fstab. It might even be optional at this point. I don't know. I've read about it in the past, but I don't have any links. Maybe LP's blog.

Re: proc line in fstab

Sat Jan 28, 2017 12:11 am

Thanks fsmithred... am building a test ISO now with the changes

Re: proc line in fstab

Sat Jan 28, 2017 12:29 am

Still getting the proc line added to fstab even after adding that...

I verified it was correctly edited in refractainstaller-yad (on the installed medium)

This is editing and using refractainstaller-yad

Re: proc line in fstab

Sat Jan 28, 2017 7:11 am

vsido wrote:Not sure what you mean by the last statement

That is easy: i meant that there is no need to dig deep for problems in systemd, as the obvious ones are more than enough.
Most of the time you will get told that it is a) a feature or b) that it can be configured (or usually you will be called a troll with no clue).

Re: proc line in fstab

Sat Jan 28, 2017 8:42 am

I dig deep at all issues no matter the politics or BS behind it and give no shits to anyone disagreeing .. If people do not want or like systemd, that's their issue not mine 8-)
Post a reply