Commit 8306c8a0 authored by Francesco Bonanno's avatar Francesco Bonanno

Added keyring autoupdater

parent a0f1b006
......@@ -3,8 +3,9 @@ image: debian
before_script:
- echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; }' >> /etc/apt/apt.conf.d/proxy
- apt-get update
- apt-get -y install sudo make build-essential autoconf automake autogen live-build qemu-user-static tar gzip xz-utils gdisk unzip wget kpartx lvm2 dosfstools coreutils parted xfsprogs wget
- apt-get -y install sudo make build-essential autoconf automake autogen live-build qemu-user-static tar gzip xz-utils gdisk unzip wget kpartx lvm2 dosfstools coreutils parted xfsprogs wget binutils tar
- echo "deb http://deb.parrotsec.org/parrot/ parrot main" > /etc/apt/sources.list.d/parrot.list && apt update
- mkdir keyring && cd keyring && wget -r -np --tries=10 -A .deb "http://archive.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/" && ar x archive.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/parrot-archive-keyring*.deb data.tar.xz && tar xf data.tar.xz ./usr/share/keyrings/parrot-archive-keyring.gpg && cp usr/share/keyrings/parrot-archive-keyring.gpg /usr/share/keyrings/parrot-archive-keyring.gpg && cd .. && rm -rf keyring
- apt download live-build debootstrap parrot-archive-keyring && dpkg --force-all -i live-build*.deb debootstrap*.deb parrot-archive-keyring*.deb
- rm -r /etc/apt/sources.list.d/parrot.list && apt update
build:
......
......@@ -33,6 +33,7 @@ BLOCKDEVICE=
all:
echo $(BUILD_NUMBER_DATE) > $(BUILD_NUMBER_FILE)
./keyring-updater.sh
set -e; taskset 0x1 sudo lb build 2>&1 | tee $(LOGFILE)
if [ -f live-image-armhf.tar.tar.gz ]; then \
tar -jcf $(CONFIGFILE) auto/ config/ configure; \
......
Parrot Security OS Raspberry PI image builder
* To build the image:
* install live-build qemu-user-static tar gzip xz-utils gdisk unzip wget kpartx lvm2 dosfstools coreutils parted xfsprogs
* install live-build qemu-user-static tar gzip xz-utils gdisk unzip wget kpartx lvm2 dosfstools coreutils parted xfsprogs binutils tar
* run configure
* run make
......
#!/bin/sh
mkdir keyring
cd keyring
wget -r -np --tries=10 -A .deb "http://archive.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/"
ar x archive.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/parrot-archive-keyring*.deb data.tar.xz
tar xf data.tar.xz ./usr/share/keyrings/parrot-archive-keyring.gpg
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization/archives/parrot.key.chroot
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization/archives/parrot.key.binary
cd .. && rm -rf keyring
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