[Debian-on-mobile-maintainers] Bug#1014393: osk-sdl: unistalling osk-sdl leaves crypttab dirty causing failure in asking for the password
Arnaud Ferraris
arnaud.ferraris at gmail.com
Tue Jul 5 16:36:00 BST 2022
Hi,
Le 05/07/2022 à 14:35, undef a écrit :
> Hi,
>
> Thanks for the bug report.
>
>> After removing osk-sdl, the crypttab file still contains the option
>> keyscript=..../osk-sdl-keyscript.
>> That is an error that prevents the booting process to ask for the
>> decrypting password.
>> Only after removing that option, I'm asked again for the password
>> (which I can enter using a physical keyboard).
>
>
> I'm not sure this one is osk-sdl's responsibility. Installing osk-sdl
> adds that keyscript to disk, but does not modify the crypttab. As far as
> I know, this type of configuration is done by the installer for both
> Debian and Mobian
> (https://gitlab.com/mobian1/calamares-settings-mobian/-/blob/mobian-installer/scripts/calamares-install-bootloader
> for example in Mobian) or the user.
>
>
> I'm not sure I'd want to write a regex that modifies the crypttab
> successfully on all systems, especially when osk-sdl doesn't "own" that
> file. I'd appreciate some advice if there is a proper way to do this
> kind of thing.
My take on that would be a simple sed command in osk-sdl's postrm:
although the package doesn't "own" the file, having a wrong/non-working
keyscript parameter can definitely cause issue.
osk-sdl should therefore ensure its removal doesn't break anything, and
a command similar to this one should work:
sed -i -e 's/,\?keyscript=.*osk-sdl-keyscript//g' <crypttab>
Cheers,
Arnaud
>
>
>
> _______________________________________________
> Debian-on-mobile-maintainers mailing list
> Debian-on-mobile-maintainers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-on-mobile-maintainers
>
More information about the Debian-on-mobile-maintainers
mailing list