Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
c9a9482c
Commit
c9a9482c
authored
Jun 24, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrs-boot-procedure: don't mount ubifs for /usr if nfsroot
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9bb7a0cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
wrs-boot-procedure
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
+8
-4
No files found.
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
View file @
c9a9482c
...
...
@@ -133,8 +133,12 @@ if [ -f /update/$WRS_FW ]; then
fi
# Here we are: boot normally: /update is muonted: mount /usr, and copy /etc
mount
-t
ubifs ubi0:usr /usr
rm
/etc/init.d/wrs-boot-procedure
;
# This is us: avoid overwriting an open file
cp
-a
/usr/etc/
*
/etc
# Here we are: boot normally: if initrd, mount /usr and copy /etc
# Otherwise do not do that, because we likely are nfs-root
if
grep
-q
initrd
=
/proc/cmdline
;
then
mount
-t
ubifs ubi0:usr /usr
# Remove "us": avoid overwriting an open file
rm
/etc/init.d/wrs-boot-procedure
;
cp
-a
/usr/etc/
*
/etc
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment