Commit 0526c21d authored by David Johnson's avatar David Johnson

Rebuild the shadow package in docker emulabization of alpine linux.

Alpine's shadow is like archlinux; it does not support uppercase
chars in user/group names.  So, fix that along with the runit install.
parent bc6429b3
COPY artifacts/runit/runit*.apk /tmp/
COPY artifacts/runit/*.apk /tmp/
......@@ -52,6 +52,20 @@ cp -p *.apk $DESTDIR/
# cp -p *.deb $DESTDIR/
# rm -rf runit *.deb *.dsc
#
# Also rebuild shadow to support user/group names with capitalized letters.
#
cd /tmp/
wget https://www.emulab.net/downloads/alpine-shadow-src.tar.gz
tar -xzvf alpine-shadow-src.tar.gz
chown -R packager shadow
cd shadow
sudo -u packager abuild checksum
sudo -u packager -H abuild -r
cp -p /home/packager/packages/tmp/x86_64/shadow-4*.apk \
/home/packager/packages/tmp/x86_64/shadow-uidmap-4*.apk \
$DESTDIR
$DIRNAME/alpine/cleanup.sh
exit 0
......@@ -18,6 +18,7 @@ echo "runit should be run here..."
apk update
apk add --allow-untrusted /tmp/runit*.apk
apk add --allow-untrusted /tmp/shadow*.apk
## dpkg -i /tmp/runit_*.deb
## apt-get install -y --no-install-suggests --no-install-recommends -f
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment