[request] Add modules required for LVM snapshots to Xperia X kernel

asked 2019-05-04 23:43:06 +0200

butler gravatar image

updated 2019-05-05 02:38:49 +0200

Why it's important: it would allow taking full backups while phone is in normal operation. Sailfish "backups" feature saves data only for a few core built-in apps, everything else is lost and most of apps need to be reinstalled. Currently it is possible to backup raw partitions in recovery mode, but doing so is very unconvinient.

My use cases: regular backup, backup before upgrades. Backup before reinstalling Android to fix networking/roaming issues or switching to Android for prolonged periods when I'm travelling abroad.

What doesn't work: LVM snapshots:

[nemo@Sailfish bp]$ sudo lvcreate -L 2G -s -n home-snap /dev/sailfish/root
modprobe: FATAL: Module dm-snapshot not found.
  /sbin/modprobe failed: 1
  snapshot: Required device-mapper target(s) not detected in your kernel.
  Run `lvcreate --help' for more information.
edit retag flag offensive close delete

Comments

Somewhat offtopic but I'd also like another module to be included: wireguard. I know the UI doesn't support wireguard yet, but the CLI programs could work provided the kernel has the required modules.

I think this is similar to the LVM snapshots thing: Users and developers can work on their own solutions for most things, but we cannot really add kernel modules. Jolla has to do that for us :/

mynameisnotimportant ( 2019-05-05 07:49:45 +0200 )edit

@mynameisnotimportant Adding wireguard is much more involved, it's not in 3.10 kernel, and I'm not sure if it's mainlined even now. Building own modules is not off-limits, it's just very bothersome since modules may need to be rebuilt between sailfish version. Though I think I've read something around here that modules in X are disabled or something.

Maybe we should have a wiki issue that tracks all modules people want to be included?

butler ( 2019-05-05 15:07:56 +0200 )edit

I wouldn't mind doing it myself (and redistributing the files on openrepos for interested parties) but AFAIK I need sources for that, and last time I checked Jolla hasn't released source for the newest OS version yet. If they released it I could figure out how to compile modules.

As for 3.10, I was about to correct you (I am on 4.4) but I guess older devices cannot upgrade the kernel as it's probably tied to libhybris :/

Anyways, I definitely agree on a wiki issue with requested kernel modules! I am sure there's more that people would like included.

mynameisnotimportant ( 2019-05-05 15:30:17 +0200 )edit

Hi,

I'd also like this feature - Wireguard would be awesome and would save a lot of battery over OpenVPN. Is it possible to compile the module without sources (DKMS)?

At any rate, the userspace implementation can be used without a module but it won't be as performant.

brothel_pianist ( 2019-05-09 14:51:42 +0200 )edit

I don't wanna derail this too much, but I got wireguard-go to run and even managed to add a wireguard device, but couldn't configure it. I didn't try much yet though. But we really should figure out how to compile kernel modules somehow...

mynameisnotimportant ( 2019-05-10 23:39:03 +0200 )edit