diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:25:08 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:25:08 +0000 |
| commit | ac02af34e6938758c236ee87e99a65e9d7318c43 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /utils/mkrootfs.sh | |
| parent | 495bfcc4011c3eb286cb5e4d57aef27af6b8751e (diff) | |
| download | alicelinux-ac02af34e6938758c236ee87e99a65e9d7318c43.tar.gz alicelinux-ac02af34e6938758c236ee87e99a65e9d7318c43.zip | |
Woodpecker CI 495bfcc4011c3eb286cb5e4d57aef27af6b8751e [SKIP CI]
Diffstat (limited to 'utils/mkrootfs.sh')
| -rwxr-xr-x | utils/mkrootfs.sh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/utils/mkrootfs.sh b/utils/mkrootfs.sh deleted file mode 100755 index ccd4cbb6..00000000 --- a/utils/mkrootfs.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -e - -[ "$(id -u)" = 0 ] || { - echo "making rootfs required root access" - false -} - -HERE=$(pwd) -OUTNAME=alicelinux-rootfs-$(date +%Y%m%d) -TARBALL=$HERE/$OUTNAME.tar.xz -PKGLIST=$TARBALL.pkglist -SHASUM=$TARBALL.sha256sum -ROOTFS=/tmp/alicerootfs -basepkg="baselayout autils binutils bison busybox - bzip2 ca-certificates curl file flex gcc - git gmp initscripts linux-headers m4 make - mpc mpfr musl openssl patch spm xz zlib" - -rm -rf $ROOTFS -mkdir -p $ROOTFS/var/lib/spm/db -APKG_ROOT=$ROOTFS apkg -i $basepkg -apkg-chroot $ROOTFS revdep -v - -rm -f $TARBALL - -echo "compressing rootfs..." -(cd $ROOTFS; tar -cJpf $TARBALL *) - -for i in $ROOTFS/var/lib/spm/db/*; do - n=${i##*/} - v=$(head -n1 $i); v=${v%-*} - echo "$n $v" >> $PKGLIST -done - -sha256sum ${TARBALL##*/} > $SHASUM - -rm -rf $ROOTFS - -echo "alice rootfs created." |