Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
bf7d76cf
Commit
bf7d76cf
authored
Oct 04, 2012
by
Serge Hallyn
Committed by
Stéphane Graber
Oct 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates: mount devtmpfs in ubuntu containers
That way /dev/disk/ exists, and update-grub can succeed. Bug-Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1060404
parent
d4eb4ab1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
lxc-ubuntu-cloud.in
templates/lxc-ubuntu-cloud.in
+4
-0
lxc-ubuntu.in
templates/lxc-ubuntu.in
+4
-0
No files found.
templates/lxc-ubuntu-cloud.in
View file @
bf7d76cf
...
...
@@ -95,6 +95,10 @@ EOF
proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0
EOF
if
grep
devtmpfs /proc/filesystems
>
/dev/null 2>&1
;
then
cat
<<
EOF
>>
$path
/fstab
devtmpfs dev devtmpfs defaults 0 0
EOF
# rmdir /dev/shm for containers that have /run/shm
# I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
...
...
templates/lxc-ubuntu.in
View file @
bf7d76cf
...
...
@@ -353,6 +353,10 @@ EOF
proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0
EOF
if
grep
devtmpfs /proc/filesystems
>
/dev/null 2>&1
;
then
cat
<<
EOF
>>
$path
/fstab
devtmpfs dev devtmpfs defaults 0 0
EOF
if
[
$?
-ne
0
]
;
then
echo
"Failed to add configuration"
...
...
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