ShadowEO / TonoKrnl

Custom kernel for Ubuntu Touch 15.04 'Vivid Vervet', Nexus 7 (2013)
Other
1 stars 1 forks source link

Need ramdisk edits to enable new features by default #8

Open ShadowEO opened 8 years ago

ShadowEO commented 8 years ago

I'd like to enable new features by default and disable msm_watchdog by default as well until that is fixed. However to do this, I have to edit the original ramdisk.

Ideally, I'd like to avoid this in the long run, as this could end up causing compatibility issues with the Flo, it also requires more maintenance than just the kernel as the kernel is the same version even on the Xenial builds, but I'd likely need to keep an updated copy of the ramdisk for multiple release versions and Flo/deb (of which I cannot do, I do not have a deb model to build against.)

One workaround could be a installer that runs on-device and patches the ramdisk, or possibly installs user/system init units (for upstart or SystemD) to automatically enable the kernel features on boot, rather than messing with the ramdisk.

ShadowEO commented 6 years ago

A way to preform this can be through a couple system writes and a init script stored in ~/.config/upstart which calls a helper script. Example implementation of this is found in the XDA link referenced in the v1.0.3-ubports release notes.

Ideally I would like to have a more elegant solution, preferably something that runs from the ramdisk and starts after the rootfs is mounted (so it can read configuration) but before the system switches to the Ubuntu root.