Skip to content

Commit

Permalink
lxc-busybox: Touch /etc/fstab in the container rootfs
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
  • Loading branch information
Bogdan Purcareata authored and stgraber committed Nov 17, 2016
1 parent e67458e commit d116264
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/lxc-busybox.in
Expand Up @@ -205,6 +205,9 @@ configure_busybox()
# relink /sbin/init
ln $rootfs/bin/busybox $rootfs/sbin/init

# /etc/fstab must exist for "mount -a"
touch $rootfs/etc/fstab

# passwd exec must be setuid
chmod +s $rootfs/bin/passwd
touch $rootfs/etc/shadow
Expand Down

0 comments on commit d116264

Please sign in to comment.