lvm2, mkinitcpio, man-pages rebuild
This commit is contained in:
@@ -9,111 +9,38 @@ from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
def builddiet():
|
||||
pisitools.flags.add("-fno-lto")
|
||||
shelltools.export("LIBS","-lpthread -luuid")
|
||||
#dietCC = "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS())
|
||||
dietCC = "%s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS())
|
||||
shelltools.export("CC", dietCC)
|
||||
|
||||
autotools.make("distclean")
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure('--with-thin-check= \
|
||||
--with-thin-dump= \
|
||||
--with-thin-repair= \
|
||||
--with-thin-restore= \
|
||||
--with-cache-check= \
|
||||
--with-cache-dump= \
|
||||
--with-cache-repair= \
|
||||
--with-cache-restore= \
|
||||
ac_cv_lib_dl_dlopen=no \
|
||||
--with-staticdir="/sbin" \
|
||||
--enable-debug \
|
||||
--with-optimisation=\"%s -Os\" \
|
||||
--enable-static_link \
|
||||
--with-lvm1=internal \
|
||||
--disable-readline \
|
||||
--disable-nls \
|
||||
--disable-selinux \
|
||||
--with-confdir=/etc \
|
||||
--enable-applib \
|
||||
--enable-cmdlib \
|
||||
--enable-pkgconfig \
|
||||
--enable-udev_rules \
|
||||
--with-systemdsystemunitdir=no \
|
||||
--enable-udev_sync' % get.CFLAGS())
|
||||
|
||||
#pisitools.dosed("lib/misc/configure.h","rpl_malloc","malloc")
|
||||
#pisitools.dosed("lib/misc/configure.h","rpl_realloc","realloc")
|
||||
|
||||
autotools.make("-j1 -C include")
|
||||
autotools.make("-j1 -C lib LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C libdm LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C libdaemon LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C tools dmsetup.static lvm.static DIETLIBC_LIBS=\"-lcompat\"")
|
||||
|
||||
pisitools.insinto("/usr/lib/dietlibc/lib-i386", "libdm/ioctl/libdevmapper.a")
|
||||
pisitools.insinto("/sbin/", "tools/lvm.static")
|
||||
pisitools.insinto("/sbin/", "tools/dmsetup.static")
|
||||
|
||||
|
||||
def setup():
|
||||
# Breaks linking when sandbox is disabled
|
||||
shelltools.export("CLDFLAGS", "%s -lpthread" %get.LDFLAGS())
|
||||
|
||||
shelltools.export("LIB_PTHREAD", "-lpthread")
|
||||
pisitools.dosed("conf/example.conf.in", "use_lvmetad = 0", "use_lvmetad = 1")
|
||||
|
||||
#shelltools.system(""" sed -i -e "1iAR = $(tc-getAR)" -e "s:CC ?= @CC@:CC = $(tc-getCC):" make.tmpl.in || die """)
|
||||
shelltools.system(""" sed -i -e '/FLAG/s:-O2::' configure || die """)
|
||||
shelltools.system(""" sed -i -e '/FLAG/s:-O2::' configure.ac || die """)
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure("--with-thin-check= \
|
||||
--with-thin-dump= \
|
||||
--with-thin-repair= \
|
||||
--with-thin-restore= \
|
||||
--with-cache-check= \
|
||||
--with-cache-dump= \
|
||||
--with-cache-repair= \
|
||||
--with-cache-restore= \
|
||||
--enable-lvm1_fallback \
|
||||
shelltools.export("CONFIG_SHELL", "/bin/bash")
|
||||
autotools.configure("--with-usrlibdir=/usr/lib \
|
||||
--with-usrsbindir=%s \
|
||||
--with-confdir=/etc \
|
||||
--with-udevdir=/lib/udev/rules.d \
|
||||
--with-default-pid-dir=/run \
|
||||
--with-default-run-dir=/run/lvm \
|
||||
--with-default-locking-dir=/run/lock/lvm \
|
||||
--with-dmeventd-path=/sbin/dmeventd \
|
||||
--enable-fsadm \
|
||||
--with-pool=internal \
|
||||
--with-user= \
|
||||
--with-group= \
|
||||
--with-usrlibdir=/usr/lib \
|
||||
--with-usrsbindir=%s \
|
||||
--with-udevdir=/lib/udev/rules.d \
|
||||
--with-device-uid=0 \
|
||||
--with-device-gid=6 \
|
||||
--with-device-mode=0660 \
|
||||
--enable-dmeventd \
|
||||
--enable-udev_rules \
|
||||
--enable-udev_sync \
|
||||
--with-cache=internal \
|
||||
--with-snapshots=internal \
|
||||
--with-mirrors=internal \
|
||||
--with-thin=internal \
|
||||
--with-interface=ioctl \
|
||||
--enable-static_link=no \
|
||||
--disable-readline \
|
||||
--disable-realtime \
|
||||
--enable-udev_rules \
|
||||
--enable-udev_sync \
|
||||
--disable-selinux \
|
||||
--with-confdir=/etc \
|
||||
--enable-readline \
|
||||
--enable-fsadm \
|
||||
--enable-applib \
|
||||
--enable-cmdlib \
|
||||
--enable-pkgconfig " % get.sbinDIR())
|
||||
--enable-pkgconfig \
|
||||
--enable-dmeventd \
|
||||
--enable-lvmetad \
|
||||
--enable-lvmpolld" % get.sbinDIR())
|
||||
|
||||
# pisitools.dosed("make.tmpl","-lm","")
|
||||
|
||||
def build():
|
||||
autotools.make("-C include")
|
||||
#autotools.make("-C libdm")
|
||||
#autotools.make("-C lib")
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
@@ -121,9 +48,11 @@ def install():
|
||||
|
||||
for dir in ["archive", "backup", "cache"]:
|
||||
pisitools.dodir("/etc/lvm/%s" % dir)
|
||||
shelltools.chmod(get.installDIR() + "/etc/lvm/%s" % dir, 0700)
|
||||
shelltools.chmod(get.installDIR() + "/etc/lvm/%s" % dir, 0755)
|
||||
shelltools.chown(get.installDIR() + "/etc/lvm/%s" % dir, uid = 'root', gid = 'root')
|
||||
|
||||
shelltools.system("sed -i 's,use_lvmetad = 1,use_lvmetad = 1,' %s/etc/lvm/lvm.conf" % get.installDIR())
|
||||
|
||||
#pisitools.move("/sbin/lvmconf","scripts/lvmconf.sh")
|
||||
|
||||
builddiet()
|
||||
pisitools.dodoc("COPYING", "COPYING.LIB", "README", "VERSION", "VERSION_DM", "WHATS_NEW", "WHATS_NEW_DM")
|
||||
pisitools.dodoc("COPYING", "COPYING.LIB", "README", "VERSION", "WHATS_NEW") # "VERSION_DM", "WHATS_NEW_DM"
|
||||
|
||||
@@ -3,4 +3,14 @@
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/lvm2.conf")
|
||||
if os.path.exists("/etc/lvm/lvm.conf"):
|
||||
with open("/etc/lvm/lvm.conf", 'r') as file:
|
||||
fileContent = file.readlines()
|
||||
for lineIndex in range(len(fileContent)):
|
||||
if ('use_lvmetad =' in fileContent[lineIndex]):
|
||||
fileContent[lineIndex] = ' use_lvmetad = 1\n'
|
||||
with open("/etc/lvm/lvm.conf", 'w') as tableFile:
|
||||
tableFile.writelines(fileContent)
|
||||
break
|
||||
|
||||
os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/lvm2.conf")
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
--- ./tools/lvmcmdline.c
|
||||
+++ ./tools/lvmcmdline.c
|
||||
@@ -1252,7 +1252,7 @@
|
||||
int err = is_valid_fd(STDERR_FILENO);
|
||||
|
||||
if (!is_valid_fd(STDIN_FILENO) &&
|
||||
- !(stdin = fopen(_PATH_DEVNULL, "r"))) {
|
||||
+ !freopen(_PATH_DEVNULL, "r", stdin)) {
|
||||
if (err)
|
||||
perror("stdin stream open");
|
||||
else
|
||||
@@ -1262,7 +1262,7 @@
|
||||
}
|
||||
|
||||
if (!is_valid_fd(STDOUT_FILENO) &&
|
||||
- !(stdout = fopen(_PATH_DEVNULL, "w"))) {
|
||||
+ !freopen(_PATH_DEVNULL, "w", stdout)) {
|
||||
if (err)
|
||||
perror("stdout stream open");
|
||||
/* else no stdout */
|
||||
@@ -1270,7 +1270,7 @@
|
||||
}
|
||||
|
||||
if (!is_valid_fd(STDERR_FILENO) &&
|
||||
- !(stderr = fopen(_PATH_DEVNULL, "w"))) {
|
||||
+ !freopen(_PATH_DEVNULL, "w", stderr)) {
|
||||
printf("stderr stream open: %s\n",
|
||||
strerror(errno));
|
||||
return 0;
|
||||
--- ./lib/commands/toolcontext.c
|
||||
+++ ./lib/commands/toolcontext.c
|
||||
@@ -1869,7 +1869,7 @@
|
||||
/* FIXME Make this configurable? */
|
||||
reset_lvm_errno(1);
|
||||
|
||||
-#ifndef VALGRIND_POOL
|
||||
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
|
||||
/* Set in/out stream buffering before glibc */
|
||||
if (set_buffering
|
||||
#ifdef SYS_gettid
|
||||
@@ -2274,7 +2274,7 @@
|
||||
|
||||
if (cmd->pending_delete_mem)
|
||||
dm_pool_destroy(cmd->pending_delete_mem);
|
||||
-#ifndef VALGRIND_POOL
|
||||
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
|
||||
if (cmd->linebuffer) {
|
||||
/* Reset stream buffering to defaults */
|
||||
if (is_valid_fd(STDIN_FILENO) &&
|
||||
@@ -0,0 +1,14 @@
|
||||
--- ./lib/config/defaults.h.orig 2017-04-27 18:16:05.879936377 +0200
|
||||
+++ ./lib/config/defaults.h 2017-04-27 18:16:35.141849047 +0200
|
||||
@@ -55,7 +55,11 @@
|
||||
#define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
|
||||
#define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
|
||||
#define DEFAULT_PRIORITISE_WRITE_LOCKS 1
|
||||
+#ifdef __GLIBC__
|
||||
#define DEFAULT_USE_MLOCKALL 0
|
||||
+#else
|
||||
+#define DEFAULT_USE_MLOCKALL 1
|
||||
+#endif
|
||||
#define DEFAULT_METADATA_READ_ONLY 0
|
||||
#define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
|
||||
#define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
|
||||
@@ -0,0 +1,21 @@
|
||||
--- a/lib/mm/memlock.c
|
||||
+++ b/lib/mm/memlock.c
|
||||
@@ -159,7 +159,7 @@ static void _touch_memory(void *mem, siz
|
||||
|
||||
static void _allocate_memory(void)
|
||||
{
|
||||
-#ifndef VALGRIND_POOL
|
||||
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
|
||||
void *stack_mem;
|
||||
struct rlimit limit;
|
||||
int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
|
||||
--- a/libdaemon/server/daemon-server.c
|
||||
+++ b/libdaemon/server/daemon-server.c
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "daemon-server.h"
|
||||
#include "daemon-log.h"
|
||||
|
||||
+#include <fcntl.h>
|
||||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
@@ -16,18 +16,18 @@
|
||||
<BuildDependencies>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
<Dependency>autoconf-archive</Dependency>
|
||||
<Dependency>libaio-devel</Dependency>
|
||||
<!-- <Dependency>thin-provisioning-tools</Dependency> -->
|
||||
<Dependency>readline-devel</Dependency>
|
||||
<Dependency>thin-provisioning-tools</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">lvm2-2.02.63-always-make-static-libdm.patch</Patch>
|
||||
<!--Patch level="1">lvm2-2.02.63-always-make-static-libdm.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.92-dynamic-static-ldflags.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.105-pthread-pkgconfig.patch</Patch>
|
||||
<Patch>lvm2-2.02.106-static-pkgconfig-libs.patch</Patch>-->
|
||||
<!-- <Patch level="1">lvm2-2.03.05-pthread-pkgconfig.patch</Patch> -->
|
||||
<!-- <Patch level="1">lvm2-2.03.05-dynamic-static-ldflags.patch</Patch> -->
|
||||
<!-- <Patch level="1">lvm2-2.03.05-dmeventd-no-idle-exit.patch</Patch> -->
|
||||
<Patch>lvm2-2.02.106-static-pkgconfig-libs.patch</Patch>
|
||||
<Patch level="1">lvm2-2.03.05-pthread-pkgconfig.patch</Patch>
|
||||
<Patch level="1">lvm2-2.03.05-dynamic-static-ldflags.patch</Patch>
|
||||
<Patch level="1">lvm2-2.03.05-dmeventd-no-idle-exit.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.178-static-pkgconfig-libs.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.56-lvm2create_initrd.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.67-createinitrd.patch</Patch>
|
||||
@@ -35,8 +35,10 @@
|
||||
<Patch level="1">lvm2-2.02.171-static-libm.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.166-HPPA-no-O_DIRECT.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.184-mksh_build.patch</Patch>
|
||||
|
||||
<Patch level="1">lvm2-2.02.186-udev_remove_unsupported_option.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.186-udev_remove_unsupported_option.patch</Patch-->
|
||||
<Patch level="1">fix-stdio-usage.patch</Patch>
|
||||
<Patch level="1">mlockall-default-config.patch</Patch>
|
||||
<Patch level="1">portability.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
@@ -55,8 +57,8 @@
|
||||
<Path fileType="data">/lib/udev/rules.d/10-dm.rules</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/13-dm-disk.rules</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/95-dm-notify.rules</Path>
|
||||
<Path fileType="doc">/usr/share/doc/VERSION_DM</Path>
|
||||
<Path fileType="doc">/usr/share/doc/WHATS_NEW_DM</Path>
|
||||
<!--Path fileType="doc">/usr/share/doc/lvm2/VERSION_DM</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/WHATS_NEW_DM</Path-->
|
||||
<Path fileType="man">/usr/share/man/man8/dmsetup.8</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/dmstats.8</Path>
|
||||
</Files>
|
||||
@@ -67,7 +69,7 @@
|
||||
<Summary>Development libraries and headers for device-mapper</Summary>
|
||||
<Description>Device-mapper-devel contains files needed to develop applications that use the device-mapper libraries.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper</Dependency>
|
||||
<Dependency release="current">device-mapper</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
@@ -81,13 +83,12 @@
|
||||
<Summary>Device-mapper event daemon</Summary>
|
||||
<Description>This package contains the dmeventd daemon for monitoring the state of device-mapper devices.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper</Dependency>
|
||||
<Dependency release="current">device-mapper</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/sbin/dmeventd</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event.a</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event.so*</Path>
|
||||
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2vdo.so</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2vdo.so</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2thin.so</Path>
|
||||
@@ -101,7 +102,7 @@
|
||||
<Summary>Development libraries and headers for the device-mapper event daemon</Summary>
|
||||
<Description>This contains contains files needed to develop applications that use the device-mapper event library.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper-event</Dependency>
|
||||
<Dependency release="current">device-mapper-event</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/libdevmapper-event.h</Path>
|
||||
@@ -116,11 +117,13 @@
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">device-mapper</Dependency>
|
||||
<Dependency release="current">device-mapper-event</Dependency>
|
||||
<Dependency>libutil-linux</Dependency>
|
||||
<Dependency>libaio</Dependency>
|
||||
<Dependency>eudev</Dependency>
|
||||
<Dependency>libutil-linux</Dependency>
|
||||
<Dependency>readline</Dependency>
|
||||
<Dependency>thin-provisioning-tools</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/lvmconf</Path>
|
||||
<Path fileType="executable">/usr/sbin/blkdeactivate</Path>
|
||||
<Path fileType="executable">/usr/sbin/fsadm</Path>
|
||||
<Path fileType="executable">/usr/sbin/lv*</Path>
|
||||
@@ -135,14 +138,20 @@
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2snapshot.so</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2raid.so</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2raid.so</Path>
|
||||
<Path fileType="config">/etc/lvm</Path>
|
||||
<Path fileType="config">/etc/lvm/lvm.conf</Path>
|
||||
<Path fileType="config">/etc/lvm/lvmlocal.conf</Path>
|
||||
<Path fileType="data">/etc/lvm/archive</Path>
|
||||
<Path fileType="data">/etc/lvm/backup</Path>
|
||||
<Path fileType="data">/etc/lvm/cache</Path>
|
||||
<Path fileType="data">/var/lock/lvm</Path>
|
||||
<Path fileType="data">/etc/lvm/profile</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/11-dm-lvm.rules</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/69-dm-lvm-metad.rules</Path>
|
||||
<Path fileType="data">/usr/lib/tmpfiles.d/lvm2.conf</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/COPYING</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/COPYING.LIB</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/README</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/VERSION</Path>
|
||||
<Path fileType="doc">/usr/share/doc/lvm2/WHATS_NEW</Path>
|
||||
<Path fileType="man">/usr/share/man/man5/lvm.conf.5</Path>
|
||||
<Path fileType="man">/usr/share/man/man7</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/fsadm.8</Path>
|
||||
@@ -164,10 +173,10 @@
|
||||
<Summary>Development libraries and headers</Summary>
|
||||
<Description>This package contains files needed to develop applications that use the lvm2 libraries.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
<Dependency release="current">lvm2</Dependency>
|
||||
<Dependency release="current">device-mapper-devel</Dependency>
|
||||
<Dependency release="current">device-mapper-event-devel</Dependency>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/lvm2cmd.h</Path>
|
||||
@@ -176,36 +185,14 @@
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>dietlibc-libdevmapper</Name>
|
||||
<Summary>Static devmapper library built with dietlibc</Summary>
|
||||
<Description>device mapper contains ioctl library and utilities for use with logical volume management (LVM2) built with dietlibc</Description>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/dietlibc/lib-i386/libdevmapper.a</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>device-mapper-static</Name>
|
||||
<Summary>Staticaly linked Device-mapper library and utility</Summary>
|
||||
<Description>device mapper contains statically linked libraries and utility for initramfs.</Description>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/dmsetup.static</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lvm2-static</Name>
|
||||
<Summary>Staticaly linked Logical Volume Management utilities</Summary>
|
||||
<Description>Number of utilities for creating, checking, and repairing logical volumes - statically linked for initramfs.</Description>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/lvm.static</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2app.a</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2cmd.a</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="8">
|
||||
<Date>2021-09-14</Date>
|
||||
<Version>2.02.186</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Berk Çakar</Name>
|
||||
<Email>berk2238@hotmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2020-12-09</Date>
|
||||
<Version>2.02.186</Version>
|
||||
|
||||
@@ -15,7 +15,7 @@ def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.removeDir("/usr/lib/kernel")
|
||||
pisitools.removeDir("/usr/lib/tmpfiles.d")
|
||||
pisitools.removeDir("/etc/mkinitcpio.d")
|
||||
pisitools.remove("/usr/lib/initcpio/install/sd-*")
|
||||
pisitools.removeDir("/usr/share/libalpm")
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/mkinitcpio.conf")
|
||||
+48
-15
@@ -4,14 +4,7 @@
|
||||
|
||||
# Udev rules for LVM.
|
||||
#
|
||||
# Scan all block devices having a PV label for LVM metadata.
|
||||
# Store this information in LVMetaD (the LVM metadata daemon) and maintain LVM
|
||||
# metadata state for improved performance by avoiding further scans while
|
||||
# running subsequent LVM commands or while using lvm2app library.
|
||||
# Also, notify LVMetaD about any relevant block device removal.
|
||||
#
|
||||
# This rule is essential for having the information in LVMetaD up-to-date.
|
||||
# It also requires blkid to be called on block devices before so only devices
|
||||
# This rule requires blkid to be called on block devices before so only devices
|
||||
# used as LVM PVs are processed (ID_FS_TYPE="LVM2_member" or "LVM1_member").
|
||||
|
||||
SUBSYSTEM!="block", GOTO="lvm_end"
|
||||
@@ -19,8 +12,7 @@ SUBSYSTEM!="block", GOTO="lvm_end"
|
||||
|
||||
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="lvm_end"
|
||||
|
||||
# If the PV label got lost, inform lvmetad immediately.
|
||||
# Detect the lost PV label by comparing previous ID_FS_TYPE value with current one.
|
||||
# Detect removed PV label by comparing previous ID_FS_TYPE value with current one.
|
||||
ENV{.ID_FS_TYPE_NEW}="$env{ID_FS_TYPE}"
|
||||
IMPORT{db}="ID_FS_TYPE"
|
||||
ENV{ID_FS_TYPE}=="LVM2_member|LVM1_member", ENV{.ID_FS_TYPE_NEW}!="LVM2_member|LVM1_member", ENV{LVM_PV_GONE}="1"
|
||||
@@ -31,7 +23,6 @@ ENV{LVM_PV_GONE}=="1", GOTO="lvm_scan"
|
||||
ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="lvm_end"
|
||||
ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO="lvm_end"
|
||||
|
||||
# Inform lvmetad about any PV that is gone.
|
||||
ACTION=="remove", GOTO="lvm_scan"
|
||||
|
||||
# Create /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> symlink for each PV
|
||||
@@ -68,26 +59,68 @@ ACTION=="change", ENV{LVM_LOOP_PV_ACTIVATED}!="1", TEST=="loop/backing_file", EN
|
||||
ENV{LVM_LOOP_PV_ACTIVATED}!="1", ENV{SYSTEMD_READY}="0"
|
||||
GOTO="lvm_end"
|
||||
|
||||
# If the PV is not a special device listed above, scan only after device addition (ADD event)
|
||||
# If the PV is not a special device listed above, scan only if necessary.
|
||||
# For "systemd_background" mode, systemd takes care of this by activating
|
||||
# the lvm2-pvscan@.service only once.
|
||||
LABEL="next"
|
||||
ACTION!="add", GOTO="lvm_end"
|
||||
|
||||
LABEL="lvm_scan"
|
||||
|
||||
# The table below summarises the situations in which we reach the LABEL="lvm_scan".
|
||||
ENV{SYSTEMD_READY}="1"
|
||||
|
||||
# The method for invoking pvscan is selected at build time with the option
|
||||
# --(enable|disable)-udev-systemd-background-jobs to "configure".
|
||||
# On modern distributions with recent systemd, it's "systemd_background";
|
||||
# on others, "direct_pvscan".
|
||||
GOTO="direct_pvscan"
|
||||
|
||||
LABEL="systemd_background"
|
||||
|
||||
# The table below summarises the situations in which we reach the LABEL="lvm_scan"
|
||||
# in the "systemd_background" case.
|
||||
# Marked by X, X* means only if the special dev is properly set up.
|
||||
# The artificial ADD is supported for coldplugging. We avoid running the pvscan
|
||||
# on artificial CHANGE so there's no unexpected autoactivation when WATCH rule fires.
|
||||
# N.B. MD and loop never actually reaches lvm_scan on REMOVE as the PV label is gone
|
||||
# within a CHANGE event (these are caught by the "LVM_PV_GONE" rule at the beginning).
|
||||
#
|
||||
# In this case, we simply set up the dependency between the device and the pvscan
|
||||
# job using SYSTEMD_ALIAS (which sets up a simplified device identifier that
|
||||
# allows using "BindsTo" in the sytemd unit file) and SYSTEMD_WANTS (which tells
|
||||
# systemd to start the pvscan job once the device is ready).
|
||||
# We need to set these variables for both "add" and "change" events, otherwise
|
||||
# systemd may loose information about the device/unit dependencies.
|
||||
#
|
||||
# | real ADD | real CHANGE | artificial ADD | artificial CHANGE | REMOVE
|
||||
# =============================================================================
|
||||
# DM | | X | X* | | X
|
||||
# MD | | X | X* | |
|
||||
# loop | | X | X* | |
|
||||
# other | X | X | X | | X
|
||||
ACTION!="remove", ENV{LVM_PV_GONE}=="1", RUN+="/usr/bin/systemd-run /usr/sbin/lvm pvscan --cache $major:$minor", GOTO="lvm_end"
|
||||
ENV{SYSTEMD_ALIAS}="/dev/block/$major:$minor"
|
||||
ENV{SYSTEMD_WANTS}+="lvm2-pvscan@$major:$minor.service"
|
||||
GOTO="lvm_end"
|
||||
|
||||
# FIXME: this mode is not used and should be removed.
|
||||
LABEL="direct_pvscan"
|
||||
|
||||
# The table below summarises the situations in which we reach the LABEL="lvm_scan"
|
||||
# for the "direct_pvscan" case.
|
||||
# Marked by X, X* means only if the special dev is properly set up.
|
||||
# The artificial ADD is supported for coldplugging. We avoid running the pvscan
|
||||
# on artificial CHANGE so there's no unexpected autoactivation when WATCH rule fires.
|
||||
#
|
||||
# In this case, we need to make sure that pvscan is not invoked spuriously, therefore
|
||||
# we invoke it only for "add" events for "other" devices.
|
||||
#
|
||||
# | real ADD | real CHANGE | artificial ADD | artificial CHANGE | REMOVE
|
||||
# =============================================================================
|
||||
# DM | | X | X* | | X
|
||||
# MD | | X | X* | |
|
||||
# loop | | X | X* | |
|
||||
# other | X | | X | | X
|
||||
ENV{SYSTEMD_READY}="1"
|
||||
RUN+="/usr/bin/lvm pvscan --background --cache --activate ay --major $major --minor $minor", ENV{LVM_SCANNED}="1"
|
||||
RUN+="/usr/sbin/lvm pvscan --background --cache --activate ay --major $major --minor $minor", ENV{LVM_SCANNED}="1"
|
||||
|
||||
LABEL="lvm_end"
|
||||
@@ -11,7 +11,6 @@ build() {
|
||||
|
||||
# binaries from lvm2
|
||||
add_binary "lvm"
|
||||
add_binary "lvmetad"
|
||||
|
||||
# beinaries from device-mapper
|
||||
add_binary "dmsetup"
|
||||
@@ -23,15 +22,14 @@ build() {
|
||||
done
|
||||
|
||||
# udev rules and lvm configuration
|
||||
add_file "/usr/lib/udev/rules.d/10-dm.rules"
|
||||
add_file "/usr/lib/udev/rules.d/11-dm-lvm.rules"
|
||||
add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
|
||||
add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
|
||||
add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"
|
||||
add_file "/usr/lib/initcpio/udev/69-dm-lvm-metad.rules" "/usr/lib/udev/rules.d/69-dm-lvm-metad.rules"
|
||||
add_file "/lib/udev/rules.d/10-dm.rules"
|
||||
add_file "/lib/udev/rules.d/11-dm-lvm.rules"
|
||||
add_file "/lib/udev/rules.d/13-dm-disk.rules"
|
||||
add_file "/lib/udev/rules.d/95-dm-notify.rules"
|
||||
add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/lib/udev/rules.d/11-dm-initramfs.rules"
|
||||
add_file "/usr/lib/initcpio/udev/69-dm-lvm-metad.rules" "/lib/udev/rules.d/69-dm-lvm-metad.rules"
|
||||
add_file "/etc/lvm/lvm.conf"
|
||||
|
||||
add_runscript
|
||||
sed -i '/^\smonitoring =/s/1/0/' "${BUILDROOT}/etc/lvm/lvm.conf"
|
||||
}
|
||||
|
||||
help() {
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# vim:set ft=sh
|
||||
# MODULES
|
||||
# The following modules are loaded before any boot hooks are
|
||||
# run. Advanced users may wish to specify all system modules
|
||||
# in this array. For instance:
|
||||
# MODULES=(piix ide_disk reiserfs)
|
||||
MODULES=()
|
||||
|
||||
# BINARIES
|
||||
# This setting includes any additional binaries a given user may
|
||||
# wish into the CPIO image. This is run last, so it may be used to
|
||||
# override the actual binaries included by a given hook
|
||||
# BINARIES are dependency parsed, so you may safely ignore libraries
|
||||
BINARIES=()
|
||||
|
||||
# FILES
|
||||
# This setting is similar to BINARIES above, however, files are added
|
||||
# as-is and are not parsed in any way. This is useful for config files.
|
||||
FILES=()
|
||||
|
||||
# HOOKS
|
||||
# This is the most important setting in this file. The HOOKS control the
|
||||
# modules and scripts added to the image, and what happens at boot time.
|
||||
# Order is important, and it is recommended that you do not change the
|
||||
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
|
||||
# help on a given hook.
|
||||
# 'base' is _required_ unless you know precisely what you are doing.
|
||||
# 'udev' is _required_ in order to automatically load modules
|
||||
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
|
||||
# Examples:
|
||||
## This setup specifies all modules in the MODULES setting above.
|
||||
## No raid, lvm2, or encrypted root is needed.
|
||||
# HOOKS=(base)
|
||||
#
|
||||
## This setup will autodetect all modules for your system and should
|
||||
## work as a sane default
|
||||
# HOOKS=(base udev autodetect block filesystems)
|
||||
#
|
||||
## This setup will generate a 'full' image which supports most systems.
|
||||
## No autodetection is done.
|
||||
# HOOKS=(base udev block filesystems)
|
||||
#
|
||||
## This setup assembles a pata mdadm array with an encrypted root FS.
|
||||
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
|
||||
# HOOKS=(base udev block mdadm encrypt filesystems)
|
||||
#
|
||||
## This setup loads an lvm2 volume group on a usb device.
|
||||
# HOOKS=(base udev block lvm2 filesystems)
|
||||
#
|
||||
## NOTE: If you have /usr on a separate partition, you MUST include the
|
||||
# usr, fsck and shutdown hooks.
|
||||
HOOKS=(base udev autodetect modconf block lvm2 filesystems keyboard resume fsck)
|
||||
|
||||
# COMPRESSION
|
||||
# Use this to compress the initramfs image. By default, gzip compression
|
||||
# is used. Use 'cat' to create an uncompressed image.
|
||||
#COMPRESSION="zstd"
|
||||
#COMPRESSION="gzip"
|
||||
#COMPRESSION="bzip2"
|
||||
#COMPRESSION="lzma"
|
||||
#COMPRESSION="xz"
|
||||
#COMPRESSION="lzop"
|
||||
#COMPRESSION="lz4"
|
||||
|
||||
# COMPRESSION_OPTIONS
|
||||
# Additional options for the compressor
|
||||
#COMPRESSION_OPTIONS=()
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/init_functions b/init_functions
|
||||
index 8ad10c7..e8a88d8 100644
|
||||
--- a/init_functions
|
||||
+++ b/init_functions
|
||||
@@ -477,6 +477,7 @@ mount_setup() {
|
||||
mount -t proc proc /proc -o nosuid,noexec,nodev
|
||||
mount -t sysfs sys /sys -o nosuid,noexec,nodev
|
||||
mount -t devtmpfs dev /dev -o mode=0755,nosuid
|
||||
+ mkdir -m 0755 /dev/pts && mount -t devpts -o gid=5,mode=620 devpts /dev/pts
|
||||
mount -t tmpfs run /run -o nosuid,nodev,mode=0755
|
||||
mkdir -m755 /run/initramfs
|
||||
|
||||
--
|
||||
@@ -19,6 +19,7 @@
|
||||
<Patches>
|
||||
<Patch level="1">nosystemd.patch</Patch>
|
||||
<Patch level="1">gzip-default.patch</Patch>
|
||||
<Patch level="1">mount-dev-pts.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
@@ -26,6 +27,7 @@
|
||||
<Name>mkinitcpio</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>busybox-mkinitcpio</Dependency>
|
||||
<Dependency>lvm2</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Conflicts>
|
||||
<Package>mkinitramfs</Package>
|
||||
@@ -34,9 +36,9 @@
|
||||
<Files>
|
||||
<Path fileType="data">/etc/initcpio</Path>
|
||||
<Path fileType="config">/etc/mkinitcpio.conf</Path>
|
||||
<Path fileType="config">/etc/mkinitcpio.d</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/initcpio</Path>
|
||||
<Path fileType="data">/usr/lib/tmpfiles.d/mkinitcpio.conf</Path>
|
||||
<Path fileType="data">/usr/share/bash-completion</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
@@ -57,15 +59,24 @@
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/install/zfs">zfs_install</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/hooks/live">live_hook</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/install/live">live_install</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/udev/10-dm-initramfs.rules">10-dm-initramfs.rules</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/udev/70-dm-lvm-metad.rules">70-dm-lvm-metad.rules</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/udev/11-dm-initramfs.rules">11-dm-initramfs.rules</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/initcpio/udev/69-dm-lvm-metad.rules">69-dm-lvm-metad.rules</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/mkinitcpio.conf">mkinitcpio.conf</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
<COMAR script="pakhandler.py">System.PackageHandler</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="11">
|
||||
<Date>2021-09-13</Date>
|
||||
<Version>30</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Berk Çakar</Name>
|
||||
<Email>berk2238@hotmail.com</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2021-09-13</Date>
|
||||
<Version>30</Version>
|
||||
|
||||
@@ -40,4 +40,7 @@ def install():
|
||||
#pisitools.remove("/usr/share/man/man7/*-keyring.7")
|
||||
#pisitools.remove("/usr/share/man/man7/keyrings.7")
|
||||
|
||||
# Comes from libxcrypt
|
||||
pisitools.remove("/usr/share/man/man3/crypt*.3")
|
||||
|
||||
pisitools.dodoc("man-pages-*.Announce", "README")
|
||||
|
||||
@@ -32,6 +32,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="11">
|
||||
<Date>2021-09-14</Date>
|
||||
<Version>5.13</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Berk Çakar</Name>
|
||||
<Email>berk2238@hotmail.com</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2021-08-31</Date>
|
||||
<Version>5.13</Version>
|
||||
|
||||
Reference in New Issue
Block a user