1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-06 10:00:40 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
David Teigland c609dedc2f Allow system.devices to be automatically created on first boot
An OS installer can create system.devices for the system and
disks, but an OS image cannot create the system-specific
system.devices.  The OS image can instead configure the
image so that lvm will create system.devices on first boot.

Image preparation steps to enable auto creation of system.devices:
- create empty file /etc/lvm/devices/auto-import-rootvg
- remove any existing /etc/lvm/devices/system.devices
- enable lvm-devices-import.path
- enable lvm-devices-import.service

On first boot of the prepared image:
- udev triggers vgchange -aay --autoactivation event <rootvg>
- vgchange activates LVs in the root VG
- vgchange finds the file /etc/lvm/devices/auto-import-rootvg,
  and no /etc/lvm/devices/system.devices, so it creates
  /run/lvm/lvm-devices-import
- lvm-devices-import.path is run when /run/lvm/lvm-devices-import
  appears, and triggers lvm-devices-import.service
- lvm-devices-import.service runs vgimportdevices --rootvg --auto
- vgimportdevices finds /etc/lvm/devices/auto-import-rootvg,
  and no system.devices, so it creates system.devices containing
  PVs in the root VG, and removes /etc/lvm/devices/auto-import-rootvg
  and /run/lvm/lvm-devices-import

Run directly, vgimportdevices --rootvg (without --auto), will create
a new system.devices for the root VG, or will add devices for the
root VG to an existing system.devices.
2024-05-21 16:29:12 -05:00
autoconf autoconf: update py-compile 2023-07-12 15:18:38 +02:00
base makefiles: use properly defined varitable 2024-05-14 17:59:26 +02:00
conf configure.ac: define DEFAULT_PROC_DIR in one place 2024-04-15 13:38:44 +02:00
coverity cov: drop model for origin_from_cow 2020-09-12 13:23:49 +02:00
daemons libdevmapper-event: correct switch break 2024-05-13 17:32:46 +02:00
device_mapper makefiles: use properly defined varitable 2024-05-14 17:59:26 +02:00
doc post-release 2024-05-16 12:17:02 +02:00
include configure.ac: define DEFAULT_PROC_DIR in one place 2024-04-15 13:38:44 +02:00
lib Allow system.devices to be automatically created on first boot 2024-05-21 16:29:12 -05:00
libdaemon const: daemon server logging backend struct 2024-05-08 01:55:20 +02:00
libdm gcc: same signess 2024-05-14 17:59:26 +02:00
man man: lvmlockd: remove dash in option name 2024-05-13 09:16:20 -05:00
nix
po makefiles: fix pofile generation 2021-03-02 22:54:40 +01:00
scripts Allow system.devices to be automatically created on first boot 2024-05-21 16:29:12 -05:00
spec spec: require ncurses only for readline 2024-04-25 17:08:19 +02:00
test makefiles: use properly defined varitable 2024-05-14 17:59:26 +02:00
tools Allow system.devices to be automatically created on first boot 2024-05-21 16:29:12 -05:00
udev makefiles: avoid using # with awk 2024-04-08 14:52:23 +02:00
.gitignore command: split man-generator code 2024-04-29 00:13:43 +02:00
.gitlab-ci.yml pages: Use gitlab pages and ikiwiki for doc 2024-05-16 12:00:26 +02:00
acinclude.m4 acinclude.m4: add local copy of PKG_CHECK_VAR 2023-02-13 14:30:46 +01:00
aclocal.m4 configure: update 2023-04-06 11:06:04 +02:00
configure configure: autoreconf 2024-04-24 00:38:32 +02:00
configure.ac configure.ac: update ldflags args 2024-04-24 00:31:26 +02:00
COPYING
COPYING.BSD Add BSD 2-Clause License 2018-07-27 17:09:46 +02:00
COPYING.LIB
ikiwiki.setup pages: Use gitlab pages and ikiwiki for doc 2024-05-16 12:00:26 +02:00
INSTALL
make.tmpl.in makefiles: change condition 2024-04-25 17:06:07 +02:00
Makefile.in makefiles: add libdm as deps for unit-test 2024-04-08 22:24:18 +02:00
README README: update with new list info 2023-10-31 19:07:47 +01:00
TESTING doc: Update TESTING file 2024-05-16 11:32:43 +02:00
VERSION post-release 2024-05-16 12:17:02 +02:00
VERSION_DM post-release 2024-05-16 12:17:02 +02:00
WHATS_NEW post-release 2024-05-16 12:17:02 +02:00
WHATS_NEW_DM post-release 2024-05-16 12:17:02 +02:00

This tree contains the LVM2 and device-mapper tools and libraries.

This is development branch, for stable 2.02 release see stable-2.02 branch.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sourceware.org/pub/lvm2/
  https://github.com/lvmteam/lvm2/releases

The source code is stored in git:
  https://gitlab.com/lvmteam/lvm2
Clone:
  git clone git@gitlab.com:lvmteam/lvm2.git
Anonymous access:
  git clone https://gitlab.com/lvmteam/lvm2.git
Mirrored to:
* https://github.com/lvmteam/lvm2
  git clone https://github.com/lvmteam/lvm2.git
  git clone git@github.com:lvmteam/lvm2.git
* https://sourceware.org/git/?p=lvm2.git
  git clone https://sourceware.org/git/lvm2.git
  git clone git://sourceware.org/git/lvm2.git

Mailing list for general discussion related to LVM2:
  linux-lvm@lists.linux.dev
  Subscribe via email to: linux-lvm+subscribe@lists.linux.dev
  Archive https://lore.kernel.org/linux-lvm/
  Older archive https://listman.redhat.com/archives/linux-lvm/

Mailing lists for LVM2 development, patches and commits:
  lvm-devel@lists.linux.dev
  Subscribe via email to: lvm-devel+subscribe@lists.linux.dev
  Archive https://lore.kernel.org/lvm-devel/
  Older archive https://listman.redhat.com/archives/lvm-devel/

  lvm2-commits@lists.fedorahosted.org (Read-only archive of commits)
  Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel

Website:
  https://sourceware.org/lvm2/

Report upstream bugs at:
  https://bugzilla.redhat.com/enter_bug.cgi?product=LVM%20and%20device-mapper
or open issues at:
  https://gitlab.com/groups/lvmteam/-/issues
  https://github.com/lvmteam/lvm2/issues

The source code repository used until 7th June 2012 is accessible using CVS:

  cvs -d :pserver:cvs@sourceware.org:/cvs/lvm2 login cvs
  cvs -d :pserver:cvs@sourceware.org:/cvs/lvm2 checkout LVM2

The password is cvs.