File tree Expand file tree Collapse file tree
package/batocera/core/batocera-scripts/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 184184done
185185
186186# snapshot to help create .stale file
187- BOOT_BEFORE=$( find /boot -mindepth 1 | sed ' s|^/boot/||' | grep -vE ' ^(boot/batocera|boot/batocera\.update|boot/rufomaculata|boot/rufomaculata\.update|boot/overlay|boot/overlay\.old|[^/]+\.upgrade|boot\.stale)$' | sort)
187+ BOOT_BEFORE=$( find /boot -mindepth 1 | sed ' s|^/boot/||' | grep -vE ' ^(boot/batocera|boot/batocera\.update|boot/rufomaculata|boot/rufomaculata\.update|boot/overlay|boot/overlay\.old|[^/]+\.upgrade|boot\.stale|.*ldlinux.* )$' | sort)
188188
189189# extract file on /boot
190190do_upgmsg " Extracting files ..."
195195
196196# build stale list: entries present before extraction but absent from the new tarball
197197do_upgmsg " Generating stale file list ..."
198- TARBALL_CONTENTS=$( xz -dc < " /userdata/system/upgrade/boot.tar.xz" | tar tf - | sed ' s|/ $||' | sort)
198+ TARBALL_CONTENTS=$( xz -dc < " /userdata/system/upgrade/boot.tar.xz" | tar tf - | sed -e ' s|^\./|| ' -e ' s|/ $||' | sort -u )
199199comm -23 \
200200 <( echo " $BOOT_BEFORE " ) \
201201 <( echo " $TARBALL_CONTENTS " ) \
You can’t perform that action at this time.
0 commit comments