_copy: _install _img_mount
_config: _copy _img_mount
_bootloader_raspi: _img_mount
- _umount: _img_mount _config _bootloader_raspi
+ _umount: _copy _config _bootloader_raspi
else
_target:
chroot "$${SYSROOT}" rm /usr/sbin/udevadm
_copy: ${SYSROOT} ${CFGROOT}
+ sync
+ find "$${SYSROOT}" -lname '' -exec ln -sf /dev/null '{}' \;
cp -au "$${SYSROOT}/." "$${CFGROOT}/"
_config: ${CFGROOT}
mountpoint "$${CFGROOT}" \
|| mount -o loop,offset="$$((${BOOT_MB} + 2))"M,sizelimit=${ROOT_MB}M \
-t ${fstype} "$${VOLUME}" "$${CFGROOT}"
+ sync
chmod 755 "$${CFGROOT}"
mkdir -p -m 755 "$${CFGROOT}/boot"
mountpoint "$${CFGROOT}/boot" \
|| mount -o loop,offset=2M,sizelimit=${BOOT_MB}M \
-t vfat "$${VOLUME}" "$${CFGROOT}/boot"
-_umount_boot: ${CFGROOT}
+_umount_boot: ${CFGROOT} _config
-umount "$${CFGROOT}/boot"
-_umount_root: _umount_boot
+_umount_root: _umount_boot _config
umount "$${CFGROOT}" && rmdir "$${CFGROOT}"
_umount: _umount_boot _umount_root