[RFC] procd: Use /dev/console for serial console if exists

2021-04-24 Thread Gaurav Pathak
Modified inittab.c to use "/dev/console" as preferred console if exists. Signed-off-by: Gaurav Pathak --- Edited inittab.c to check and use "/dev/console" as the first console device before parsing "/sys/class/tty/console/active". inittab.c | 8 +++- 1 fi

[RFC] procd: Use /dev/console for serial console if exists

2021-04-25 Thread Gaurav Pathak
inittab.c: Use "/dev/console" character device (5,1) if it is present, before trying "/sys/class/tty/console/active" in case if console kernel command line is not provided during boot and to allow container environment to use it as login PTY console. Signed-off-by: Gaurav Pa

Re: [RFC] procd: Use /dev/console for serial console if exists

2021-04-24 Thread Gaurav Pathak
(5,1) and use it if it is present before trying "/sys/class/tty/console/active". On Sat, Apr 24, 2021 at 02:54:26PM +0100, Daniel Golle wrote: > On Sat, Apr 24, 2021 at 03:39:51AM -1000, Paul Spooren wrote: > > > > On 4/24/21 1:01 AM, Gaurav Pathak wrote: > > &g

[PATCH procd v2] inittab: use /dev/console for serial console if exists

2021-04-25 Thread Gaurav Pathak
Use "/dev/console" device node if it is present, before trying "/sys/class/tty/console/active" in case if console kernel command line is not provided during boot and to allow container environment to use it as login PTY console. Signed-off-by: Gaurav Pathak Signed-

[PATCH] procd: Use /dev/console for serial console if exists

2021-05-05 Thread Gaurav Pathak
inittab.c: Use "/dev/console" if it is present, before trying "/sys/class/tty/console/active" in case if console kernel command line is not provided during boot and to allow container environment to use it as login PTY console. Signed-off-by: Gaurav Pathak --- inittab

[no subject]

2021-03-21 Thread Gaurav Pathak
I have merged the detection of /pantavisor into the is_container() function. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[PATCH v1] procd: Adding support to detect Pantavisor Container Platform

2021-03-21 Thread Gaurav Pathak
Modified container.h to detect the pantavisor container platform, as it runs a custom modified version of LXC. container.h is modified to check if procd is running in a pantavisor container environment by detecting the presence of pantavisor directory under /. Signed-off-by: Gaurav Pathak

[PATCH] procd: Adding support to detect Pantavisor Container Platform

2021-03-22 Thread Gaurav Pathak
Hi John, I missed your message, seems like it didn't land in inbox or spam folder of my e-mail. > as it runs a custom modified version > of LXC > I assume that if this is a custom downstream version then the change is > not applicable for merge into upstream owrt. please

Re: [PATCH] procd: Adding support to detect Pantavisor Container Platform

2021-03-22 Thread Gaurav Pathak
On Mon, Mar 22, 2021 at 10:42:25AM +, Daniel Golle wrote: > On Mon, Mar 22, 2021 at 03:38:25PM +0530, Gaurav Pathak wrote: > > Hi John, > > > > I missed your message, seems like it didn't land in inbox or spam folder of > > my e-mail. > > > > &

Re: [PATCH] procd: Adding support to detect Pantavisor Container Platform

2021-03-22 Thread Gaurav Pathak
On Mon, Mar 22, 2021 at 11:53:35AM +, Daniel Golle wrote: > On Mon, Mar 22, 2021 at 05:00:06PM +0530, Gaurav Pathak wrote: > > On Mon, Mar 22, 2021 at 10:42:25AM +, Daniel Golle wrote: > > > On Mon, Mar 22, 2021 at 03:38:25PM +0530, Gaurav Pathak wrote: > >

[PATCH] procd: Adding support to detect Pantavisor Container Platform

2021-03-20 Thread Gaurav Pathak
in a pantavisor container environment. Signed-off-by: Gaurav Pathak --- initd/early.c | 5 - initd/zram.c| 3 ++- plug/coldplug.c | 3 ++- pv_platform.h | 37 + state.c | 3 ++- 5 files changed, 47 insertions(+), 4 deletions(-) create