Skip to content

Automatically fall back to overlay if aufs is unsupported #3363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
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
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,62 +14,75 @@ jobs:
build:
if: (github.event_name != 'schedule') || (github.event_name == 'schedule' && github.repository == 'puppylinux-woof-CE/woof-CE' && github.ref == 'refs/heads/testing') || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-20.04
continue-on-error: true
continue-on-error: ${{ matrix.unionfs == 'aufs' }}
strategy:
matrix:
include:
- arch: x86
compat-distro: slackware
compat-distro-version: 14.2
kernel: 4.19.x-x86
unionfs: aufs
- arch: x86
compat-distro: debian
compat-distro-version: bullseye
kernel: 5.10.x-x86
unionfs: overlay
- arch: x86
compat-distro: debian
compat-distro-version: bookworm
kernel: 5.10.x-x86
unionfs: overlay
- arch: x86_64
compat-distro: slackware64
compat-distro-version: 14.2
kernel: 4.19.x-x86_64
unionfs: aufs
- arch: x86_64
compat-distro: debian
compat-distro-version: bullseye64
kernel: 5.10.x-x86_64
unionfs: overlay
- arch: x86_64
compat-distro: debian
compat-distro-version: bookworm64
kernel: 5.10.x-x86_64
unionfs: overlay
- arch: x86_64
compat-distro: ubuntu
compat-distro-version: jammy64
kernel: 5.15.x-x86_64
unionfs: aufs
- arch: x86_64
compat-distro: ubuntu
compat-distro-version: focal64
kernel: 5.4.x-x86_64
unionfs: aufs
- arch: x86_64
compat-distro: slackware64
compat-distro-version: "15.0"
kernel: 5.15.x-x86_64
unionfs: aufs
- arch: x86
compat-distro: slackware
compat-distro-version: "15.0"
kernel: 5.15.x-x86
unionfs: aufs
- arch: x86_64
compat-distro: ubuntu
compat-distro-version: bionic64
kernel: 4.19.x-x86_64
unionfs: aufs
- arch: x86_64
compat-distro: debian
compat-distro-version: sid64
kernel: 5.15.x-x86_64
unionfs: overlay
- arch: arm
compat-distro: debian
compat-distro-version: bullseye-veyron-speedy
kernel: 5.4.x-veyron-speedy
unionfs: overlay
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -121,11 +134,10 @@ jobs:
id: choose_kernel_variant
run: |
cd ../woof-out_*
UNIONFS="aufs"
. _00build.conf
[ ! -e _00build_2.conf ] || . _00build_2.conf
name="kernel-kit-output-usrmerge-$UNIONFS-${{ matrix.kernel }}"
[ "$USR_SYMLINKS" = yes ] || name="kernel-kit-output-$UNIONFS-${{ matrix.kernel }}"
name="kernel-kit-output-usrmerge-${{ matrix.unionfs }}-${{ matrix.kernel }}"
[ "$USR_SYMLINKS" = yes ] || name="kernel-kit-output-${{ matrix.unionfs }}-${{ matrix.kernel }}"
echo "::set-output name=artifact_name::$name"
shell: bash
- name: Get cached kernel-kit output
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ jobs:
run: sudo sed -i s/^DISTRO_VERSION=.*/DISTRO_VERSION=${{ github.event.inputs.version }}/ ../woof-out_*/DISTRO_SPECS
- name: Set file name prefix
run: sudo sed -i s/^DISTRO_FILE_PREFIX=.*/DISTRO_FILE_PREFIX=${{ github.event.inputs.prefix }}/ ../woof-out_*/DISTRO_SPECS
- name: Set layered file system
run: echo "UNIONFS=${{ github.event.inputs.unionfs }}" | sudo tee -a ../woof-out_*/_00build_2.conf
- name: 0setup
run: |
cd ../woof-out_*
Expand Down
3 changes: 2 additions & 1 deletion initrd-progs/0initrd/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ psubdir=</path/to/install/directory>
This is the default path for locating any puppy file and any partition.

punionfs=<aufs|overlay>
Overrides the union file system choice made at build time.
Overrides the union file system choice.
The default is aufs, if the kernel is built with aufs support.
Use with care, as aufs and overlay are incompatible with each other.
To switch from aufs to overlay or vice versa, start with a fresh save layer (pfix=ram).

Expand Down
5 changes: 2 additions & 3 deletions initrd-progs/0initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,8 @@ setup_onepupdrv() {
fi
if [ -n "$punionfs" ]; then
UNIONFS="$punionfs"
elif [ -f $SFS_MP/etc/rc.d/PUPSTATE ]; then
. $SFS_MP/etc/rc.d/PUPSTATE
[ -n "$PUNIONFS" ] && UNIONFS="$PUNIONFS"
elif [ "$UNIONFS" = 'aufs' ]; then
grep -qm1 aufs /proc/filesystems || UNIONFS="overlay"
fi
if [ "$UNIONFS" = 'overlay' ]; then
remount_overlay -e "s~lowerdir=([^,]+)~lowerdir=${SFS_MP}:\1~" -e "s~lowerdir=,~lowerdir=${SFS_MP},~"
Expand Down
2 changes: 0 additions & 2 deletions woof-code/3builddistro
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,6 @@ if [ "$SDFLAG" != "" -o "$CROSFLAG" != "" ];then
echo "BOOT_BOARD='${BOOT_BOARD}'" >> rootfs-complete/etc/rc.d/BOOTCONSTRAINED #120714 read by quicksetup.
fi

echo "PUNIONFS='$UNIONFS'" >> rootfs-complete/etc/rc.d/PUPSTATE

# users shouldn't be able to read files under another home directory - i.e. leak .netrc
busybox chmod 700 rootfs-complete/root rootfs-complete/home/spot

Expand Down
3 changes: 0 additions & 3 deletions woof-code/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
#XAUTOCONF=yes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#YDRV_SFS_URL=
#FDRV_SFS_URL=

UNIONFS=overlay
USR_SYMLINKS=no
BUILD_CROS_IMAGE=yes
BOOT_BOARD='veyron-speedy'
3 changes: 0 additions & 3 deletions woof-distro/arm/raspbian/buster/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ STRIP_BINARIES=yes

BOOT_BOARD='raspi'

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=yes

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/debian/buster/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/debian/stretch/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/slackware/14.0/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ STRIP_BINARIES=no
# 3builddistro
#-------------

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/slackware/14.2/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=yes

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/slackware/15.0/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/ubuntu/trusty/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ STRIP_BINARIES=yes
# 3builddistro
#-------------

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/ubuntu/upupbb/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86/ubuntu/xenial/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/debian/bookworm64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=overlay

## Kernel tarballs repo URL for choosing/downloading kernel
KIT_KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/debian/bullseye64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=overlay

## Kernel tarballs repo URL for choosing/downloading kernel
KIT_KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/debian/buster64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/debian/sid64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=overlay

## Kernel tarballs repo URL for choosing/downloading kernel
KIT_KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/slackware64/14.2/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=yes

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/slackware64/15.0/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/ubuntu/bionic64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/ubuntu/focal64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=yes

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/ubuntu/jammy64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=no

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KIT_KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/ubuntu/trusty64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ STRIP_BINARIES=yes
# 3builddistro
#-------------

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down
3 changes: 0 additions & 3 deletions woof-distro/x86_64/ubuntu/xenial64/_00build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
# 2createpackages
STRIP_BINARIES=yes

## UnionFS: aufs or overlay
UNIONFS=aufs

## Kernel tarballs repo URL for choosing/downloading kernel
KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels

Expand Down