mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-05 18:57:55 +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
|
||||
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
|
||||
|
@ -352,6 +352,10 @@ EOF
|
||||
cat <<EOF > $path/fstab
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user