Skip to content

Commit

Permalink
Fix error in migration from pre-refactor frzr
Browse files Browse the repository at this point in the history
Use the migration method for etc in var as well, fixing "cp: cannot stat '/frzr_root/var/*': no such file or directory".
  • Loading branch information
NeroReflex committed Aug 26, 2024
1 parent 2908203 commit 18c4a53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/usr/lib/frzr.d/install-0004-overlays.migration
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ post_install() {

if [ ! -d "${MOUNT_PATH}/usr" ] && [ -d "${MOUNT_PATH}/var" ] && [ -z $sysroot_snapshot ]; then
echo "Transforming the /var subolume in '${MOUNT_PATH}/var/' to an overlay upperdir in '${SUBVOL_DATA}/var_overlay/upperdir'..."
mount -t overlay overlay -o lowerdir="${SUBVOL}/var",upperdir="${SUBVOL_DATA}/var_overlay/upperdir",workdir="${SUBVOL_DATA}/var_overlay/workdir" "${SUBVOL}/var"
cp -a ${MOUNT_PATH}/var/* "${SUBVOL}/var"
umount "${SUBVOL}/var"
rm -rf "${SUBVOL_DATA}/var_overlay/upperdir"
cp -a "${MOUNT_PATH}/var" "${SUBVOL_DATA}/var_overlay/"
mv "${SUBVOL_DATA}/var_overlay/var" "${SUBVOL_DATA}/var_overlay/upperdir"
fi

# clear out old pacman database
Expand Down

0 comments on commit 18c4a53

Please sign in to comment.