mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 22:28:47 +00:00
util-linux: Create a dummy /etc/fstab to satisfy two tests
This commit is contained in:
parent
6a75210c6d
commit
9bfd203fad
@ -93,7 +93,14 @@
|
||||
|
||||
<screen><userinput remap="make">make</userinput></screen>
|
||||
|
||||
<para>If desired, run the test suite as a non-&root; user:</para>
|
||||
<!-- To editors:
|
||||
Two tests need a /etc/fstab file. They are skipped if the host
|
||||
distro isn't using systemd as the init system, so don't remove
|
||||
the creation of /etc/fstab unless you've tested it with such a
|
||||
host distro (for example LFS systemd or Debian). -->
|
||||
<para>If desired, create a dummy <filename>/etc/fstab</filename> file
|
||||
to satisfy two tests and run the test suite as a non-&root;
|
||||
user:</para>
|
||||
|
||||
<warning><para>Running the test suite as the
|
||||
<systemitem class="username">root</systemitem> user can be harmful to
|
||||
@ -106,7 +113,8 @@
|
||||
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
|
||||
</warning>
|
||||
|
||||
<screen><userinput remap="test">chown -R tester .
|
||||
<screen><userinput remap="test">touch /etc/fstab
|
||||
chown -R tester .
|
||||
su tester -c "make -k check"</userinput></screen>
|
||||
|
||||
<para>
|
||||
|
Loading…
Reference in New Issue
Block a user