Skip to content

Commit f51d16d

Browse files
Ensure /dev/shm is mounted inside chroot
1 parent a275f17 commit f51d16d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

utils/mass-chroot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ echo "Entering chroot environment in $chrootdir..."
2525

2626
mount --bind /dev "$chrootdir"/dev
2727
mount --bind /dev/pts "$chrootdir"/dev/pts
28+
mount -t tmpfs devshm "$chrootdir"/dev/shm
2829
mount -t proc proc "$chrootdir"/proc
2930
mount -t sysfs sysfs "$chrootdir"/sys
3031
mount -t tmpfs tmpfs "$chrootdir"/run
@@ -40,6 +41,7 @@ echo "Exiting chroot environment..."
4041

4142
sync
4243
umount -R "$chrootdir"/dev/pts
44+
umount -R "$chrootdir"/dev/shm
4345
umount -R "$chrootdir"/dev
4446
umount -R "$chrootdir"/proc
4547
umount -R "$chrootdir"/sys

0 commit comments

Comments
 (0)