[systemd-devel] Physical address of memory allocation in systemd-stub

2024-05-09 Thread Ani Sinha
Hi : Is there an already existing api that returns the underlying physical address of a chunk of memory allocated in systemd-stub? I am not sure of all the UEFI spec details and how memory allocation within the stub or PE executables are handled. thanks Ani

Re: [systemd-devel] issuing 'reboot' command does not print the familiar 'Restarting system.' message

2015-04-13 Thread Ani Sinha
On Sun, Apr 12, 2015 at 6:46 AM, Lennart Poettering wrote: > On Fri, 10.04.15 12:35, Ani Sinha (a...@arista.com) wrote: > >> On Fri, Apr 10, 2015 at 10:18 AM, Ani Sinha wrote: >> > Thanks Lennart for the clarification. Much appreciated! >> > >> > Ani >

[systemd-devel] issuing 'reboot' command does not print the familiar 'Restarting system.' message

2015-04-09 Thread Ani Sinha
Hi Systemd devs : We have some scripts that depend on the kernel printing "Restarting system." when a "reboot" command is issued on the console. Unfortunately we are not seeing such a message just before reboot. It seems that the reboot() syscall is not even getting invoked by start_special(). Do

Re: [systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-15 Thread Ani Sinha
On Thu, May 15, 2014 at 3:25 AM, Lennart Poettering wrote: >> How do you propose softwares fix that? > > Note that systemd itself can do pivot_root() for you. See "systemctl > switch-root". Isn't that enough for your needs? > > If not, please have a look how it is implemented in systemd: > > htt

Re: [systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-14 Thread Ani Sinha
>> >> Why pivot_root() fails ? > > pivot_root() fails because of the following code in linux kernel : > > http://lxr.free-electrons.com/source/fs/namespace.c#L2730 > > any code that calls pivot_root() under / will fail with EINVAL. > This is the redhat bug that discusses the kernel behavior : htt

Re: [systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-14 Thread Ani Sinha
On Wed, May 14, 2014 at 5:31 PM, Djalal Harouni wrote: > On Wed, May 14, 2014 at 03:12:55PM -0700, Ani Sinha wrote: >> On Wed, May 14, 2014 at 9:14 AM, Lennart Poettering >> wrote: >> > On Tue, 13.05.14 20:16, Ani Sinha (a...@arista.com) wrote: >> > >> &g

Re: [systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-14 Thread Ani Sinha
On Wed, May 14, 2014 at 9:14 AM, Lennart Poettering wrote: > On Tue, 13.05.14 20:16, Ani Sinha (a...@arista.com) wrote: > > > Why precisely would you want to disable propagation from the root dir? > The core issue is that pivot_root() syscall breaks if the new_root is a mo

[systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-13 Thread Ani Sinha
Note: I had sent this email earlier but I realized that I needed to be subscribed to the mailing list. Now that I have my subscription, I am resending it again. Lennart, sorry for the double noise. --- Hello folks: The following change started mounting the rootfs as shared : b3ac5f8cb98757416d