Allow export --force
After https://github.com/postmarketOS/pmbootstrap/pull/250 has been merged I've found a situation where flasher export
crashes:
When the symlink already exists but points to an non-existing file, the os.path.exists condition is False and then "ln -s" fails.
Reproduce:
pmb flasher export
cd /tmp/postmarketOS-export
ln -sf /unexisting initramfs-motorola-titan # adjust name
pmb flasher export
Proposed solution:
We could allow a --force
argument that ignores if file already exists and also forces the symlink creation ("ln -sf")