mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-09 01:20:06 +00:00
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
This commit is contained in:
parent
d4eb4ab129
commit
bf7d76cf3a
@ -94,6 +94,10 @@ EOF
|
|||||||
cat <<EOF > $path/fstab
|
cat <<EOF > $path/fstab
|
||||||
proc proc proc nodev,noexec,nosuid 0 0
|
proc proc proc nodev,noexec,nosuid 0 0
|
||||||
sysfs sys sysfs defaults 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
|
EOF
|
||||||
|
|
||||||
# rmdir /dev/shm for containers that have /run/shm
|
# rmdir /dev/shm for containers that have /run/shm
|
||||||
|
@ -352,6 +352,10 @@ EOF
|
|||||||
cat <<EOF > $path/fstab
|
cat <<EOF > $path/fstab
|
||||||
proc proc proc nodev,noexec,nosuid 0 0
|
proc proc proc nodev,noexec,nosuid 0 0
|
||||||
sysfs sys sysfs defaults 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
|
EOF
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user