Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions busybox/makeimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down