mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #9764 from ztombol/fix-reduce-arch-rootfs-size
Revisiting mkimage-arch.sh
This commit is contained in:
commit
21cf4b4c4c
1 changed files with 27 additions and 1 deletions
|
@ -18,7 +18,32 @@ ROOTFS=$(mktemp -d ${TMPDIR:-/var/tmp}/rootfs-archlinux-XXXXXXXXXX)
|
||||||
chmod 755 $ROOTFS
|
chmod 755 $ROOTFS
|
||||||
|
|
||||||
# packages to ignore for space savings
|
# packages to ignore for space savings
|
||||||
PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs
|
PKGIGNORE=(
|
||||||
|
cryptsetup
|
||||||
|
device-mapper
|
||||||
|
dhcpcd
|
||||||
|
iproute2
|
||||||
|
jfsutils
|
||||||
|
linux
|
||||||
|
lvm2
|
||||||
|
man-db
|
||||||
|
man-pages
|
||||||
|
mdadm
|
||||||
|
nano
|
||||||
|
netctl
|
||||||
|
openresolv
|
||||||
|
pciutils
|
||||||
|
pcmciautils
|
||||||
|
reiserfsprogs
|
||||||
|
s-nail
|
||||||
|
systemd-sysvcompat
|
||||||
|
usbutils
|
||||||
|
vi
|
||||||
|
xfsprogs
|
||||||
|
)
|
||||||
|
IFS=','
|
||||||
|
PKGIGNORE="${PKGIGNORE[*]}"
|
||||||
|
unset IFS
|
||||||
|
|
||||||
expect <<EOF
|
expect <<EOF
|
||||||
set send_slow {1 .1}
|
set send_slow {1 .1}
|
||||||
|
@ -36,6 +61,7 @@ expect <<EOF
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
arch-chroot $ROOTFS /bin/sh -c 'rm -r /usr/share/man/*'
|
||||||
arch-chroot $ROOTFS /bin/sh -c "haveged -w 1024; pacman-key --init; pkill haveged; pacman -Rs --noconfirm haveged; pacman-key --populate archlinux; pkill gpg-agent"
|
arch-chroot $ROOTFS /bin/sh -c "haveged -w 1024; pacman-key --init; pkill haveged; pacman -Rs --noconfirm haveged; pacman-key --populate archlinux; pkill gpg-agent"
|
||||||
arch-chroot $ROOTFS /bin/sh -c "ln -s /usr/share/zoneinfo/UTC /etc/localtime"
|
arch-chroot $ROOTFS /bin/sh -c "ln -s /usr/share/zoneinfo/UTC /etc/localtime"
|
||||||
echo 'en_US.UTF-8 UTF-8' > $ROOTFS/etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' > $ROOTFS/etc/locale.gen
|
||||||
|
|
Loading…
Reference in a new issue