https://github.com/runejuhl/lvm-cache
Fixes for Debian #773731
https://github.com/runejuhl/lvm-cache
Last synced: 3 months ago
JSON representation
Fixes for Debian #773731
- Host: GitHub
- URL: https://github.com/runejuhl/lvm-cache
- Owner: runejuhl
- License: gpl-2.0
- Created: 2015-07-24T10:45:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-24T10:55:12.000Z (almost 10 years ago)
- Last Synced: 2025-02-28T17:08:40.638Z (3 months ago)
- Language: Python
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* lvm-cache utils for Debian 8
Due to [[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug%3D773731][https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773731]], a Debian
system with /usr on a lvm-cache is not able to boot.To remedy this, use the scripts provided here.
=lddr.py= is a Python3 script that recursively resolves dynamic
libraries. This is needed as =cache_check=, used with lvm-cache, depends on
libstdc++. We use it here with the =--copy= argument to get =lddr.py= to copy
the libraries to where we want them. Place it in =/usr/local/bin= unless you
change the path in =lvm-cache.sh=.=lvm-cache.sh= is an initramfs hook. It should be dropped in
=/etc/initramfs-tools/hools/lvm-cache.sh= and made executable. It runs
=lddr.py= against =cache_check=, and copied the needed =dm_= modules to the
initramfs.When the files are in their correct positions, run =update-initramfs -u -k
all= to update the initramfs for all installed kernels.To check whether it worked, either reboot (and risk having an unbootable
system), or run the following command to copy the initramfs, unzip and un-cpio
it:: cp /boot/initrd.img-`uname -r` . && mv initrd.img-`uname -r`{,.gz} && gunzip initrd.img-3.16.0-4-amd64.gz && cpio -ivf < initrd.img-`uname -r`
** Alternative
Instead of =lddr.py=, use the following command:: LD_TRACE_LOADED_OBJECTS=1 LD_VERBOSE=1 /lib64/ld-linux-x86-64.so.2 /usr/sbin/cache_check
This, and a bit of shell scripting, should remove the Python dependency.