linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to change default system dir
@ 2022-09-28 15:16 Bartłomiej Błachut
  2022-09-29 10:58 ` Zdenek Kabelac
  0 siblings, 1 reply; 3+ messages in thread
From: Bartłomiej Błachut @ 2022-09-28 15:16 UTC (permalink / raw)
  To: linux-lvm, lvm-devel


[-- Attachment #1.1: Type: text/plain, Size: 555 bytes --]

Hi,
I have a question for you, because what I need is to change in my
ubuntu(22.04) the localisation of default-system-dir from /etc/lvm to a
place where I have write access e.g. /home/my_user/new_lvm_dir. I've tried
so far to provide to ./configure option
--with-default-system-dir=/home/my_user/new_lvm_dir or later I replace
everywhere in code pattern /etc/lvm to /home/my_user/new_lvm_dir but
without any success. Are you able to give me any idea how I can do it ?

I tried it on main/stable branches git://sourceware.org/git/lvm2.git

Cheers,
Bartek

[-- Attachment #1.2: Type: text/html, Size: 1309 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] How to change default system dir
  2022-09-28 15:16 [linux-lvm] How to change default system dir Bartłomiej Błachut
@ 2022-09-29 10:58 ` Zdenek Kabelac
  2022-09-29 14:37   ` Roger Heflin
  0 siblings, 1 reply; 3+ messages in thread
From: Zdenek Kabelac @ 2022-09-29 10:58 UTC (permalink / raw)
  To: LVM2 development, Bartłomiej Błachut, linux-lvm

Dne 28. 09. 22 v 17:16 Bartłomiej Błachut napsal(a):
> Hi,
> I have a question for you, because what I need is to change in my 
> ubuntu(22.04) the localisation of default-system-dir from /etc/lvm to a place 
> where I have write access e.g. /home/my_user/new_lvm_dir. I've tried so far to 
> provide to ./configure option 
> --with-default-system-dir=/home/my_user/new_lvm_dir or later I replace 
> everywhere in code pattern /etc/lvm to /home/my_user/new_lvm_dir but without 
> any success. Are you able to give me any idea how I can do it ?
> 
> I tried it on main/stable branches git://sourceware.org/git/lvm2.git 
> <http://sourceware.org/git/lvm2.git>
> 

Hi


lvm2 basically always require a 'root' access for any 'real usable' lvm2 
command - so saying you don't have write access to /etc  looks very strange to 
start with.

We have also configure option  --with-confdir=[/etc]
but I still think you should start with explaining what are you actually 
trying to do - as maybe there is some design issue??


Regards

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] How to change default system dir
  2022-09-29 10:58 ` Zdenek Kabelac
@ 2022-09-29 14:37   ` Roger Heflin
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Heflin @ 2022-09-29 14:37 UTC (permalink / raw)
  To: LVM general discussion and development
  Cc: Bartłomiej Błachut, LVM2 development

Assuming you are write protecting /etc for a reason, simply mv
everything in /etc/lvm to your new location and replace the lvm dir
with a lvm symbolic link to your location.

In the far past when booting with RO devices I had lots of links in
/etc/ pointing to files that were not on the read-only and/or
writable-but-lost-on-boot(overlay) device.

On Thu, Sep 29, 2022 at 5:58 AM Zdenek Kabelac <zdenek.kabelac@gmail.com> wrote:
>
> Dne 28. 09. 22 v 17:16 Bartłomiej Błachut napsal(a):
> > Hi,
> > I have a question for you, because what I need is to change in my
> > ubuntu(22.04) the localisation of default-system-dir from /etc/lvm to a place
> > where I have write access e.g. /home/my_user/new_lvm_dir. I've tried so far to
> > provide to ./configure option
> > --with-default-system-dir=/home/my_user/new_lvm_dir or later I replace
> > everywhere in code pattern /etc/lvm to /home/my_user/new_lvm_dir but without
> > any success. Are you able to give me any idea how I can do it ?
> >
> > I tried it on main/stable branches git://sourceware.org/git/lvm2.git
> > <http://sourceware.org/git/lvm2.git>
> >
>
> Hi
>
>
> lvm2 basically always require a 'root' access for any 'real usable' lvm2
> command - so saying you don't have write access to /etc  looks very strange to
> start with.
>
> We have also configure option  --with-confdir=[/etc]
> but I still think you should start with explaining what are you actually
> trying to do - as maybe there is some design issue??
>
>
> Regards
>
> Zdenek
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://listman.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-29 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 15:16 [linux-lvm] How to change default system dir Bartłomiej Błachut
2022-09-29 10:58 ` Zdenek Kabelac
2022-09-29 14:37   ` Roger Heflin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).