diff --git a/busybox/makeimage.sh b/busybox/makeimage.sh index 616e33d5..66454f6d 100755 --- a/busybox/makeimage.sh +++ b/busybox/makeimage.sh @@ -23,6 +23,13 @@ mkdir ./bin for i in $(./sbin/busybox --list);do ln -s /sbin/busybox ./bin/$i done +mkdir etc +echo "root:x:0:0:root:/root:/bin/sh" > etc/passwd +echo "root:!:10933:0:99999:7:::" > etc/shadow +echo "root:x:0:" > etc/group +echo -e "TZif2UTCTZif2UTC\nUTC0" > etc/localtime +chmod 644 etc/localtime +chmod 664 etc/passwd etc/shadow etc/group # Create container tar -c . | docker import -c="CMD /bin/sh" - $1