Skip to content

Commit f358194

Browse files
committed
Improve kernel settings doc for VMs
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 6c00362 commit f358194

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ file cannot be read as required by libguestfish.
6464

6565
Run this command as a temporary and immediate fix::
6666

67+
sudo chmod 0644 /boot/vmlinuz-*
6768
for k in /boot/vmlinuz-*
6869
do sudo dpkg-statoverride --add --update root root 0644 /boot/vmlinuz-$k
6970
done
@@ -87,9 +88,9 @@ https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725/comments/3 ::
8788

8889
2. Set executable permissions::
8990

90-
sudo chmod +x /etc/kernel/postinst.d/statoverride
91+
sudo chmod +x /etc/kernel/postinst.d/statoverride
9192

92-
See also for a complete discussion:
93+
See also these links for a complete discussion:
9394

9495
- https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
9596
- https://bugzilla.redhat.com/show_bug.cgi?id=1670790
@@ -109,15 +110,13 @@ ExtractCode will use these environment variables if set:
109110
shared library used to support some of the archive formats. If not provided,
110111
ExtractCode will look for a plugin-provided libarchive library path. See
111112
https://github.com/nexB/scancode-plugins/tree/main/builtins for such plugins.
112-
113113
If no plugin contributes libarchive, then a final attempt is made to look for
114114
it in the PATH using standard DLL loading techniques.
115115

116116
- EXTRACTCODE_7Z_PATH : the path to the ``7z`` 7zip executable used to support
117117
some of the archive formats. If not provided, ExtractCode will look for a
118118
plugin-provided 7z executable path. See
119119
https://github.com/nexB/scancode-plugins/tree/main/builtins for such plugins.
120-
121120
If no plugin contributes 7z, then a final attempt is made to look for
122121
it in the PATH.
123122

src/extractcode/vmimage.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,17 @@
4242
'WARNING: guestfish executable is not installed. '
4343
'Unable to extract virtual machine image: you need to install the '
4444
'guestfish tool from libguestfs and extra FS drivers if needed. '
45-
'See the ExtractCode README.rst and https://libguestfs.org/ for details.'
45+
'See the ExtractCode README.rst at '
46+
'https://github.com/nexB/extractcode/blob/main/README.rst '
47+
'and https://libguestfs.org/ for details.'
4648
)
4749

4850
GUESTFISH_KERNEL_NOT_READABLE = (
4951
'''libguestfs requires the kernel executable to be readable.
5052
This is the case by default on most Linux distributions except on Ubuntu.
5153
Please follow the instructions in ExtractCode installation guide to make this happen.
52-
See the ExtractCode README.rst for details.
54+
See deatils in the ExtractCode README.rst at:
55+
https://github.com/nexB/extractcode/blob/main/README.rst '
5356
''')
5457

5558
EXTRACTCODE_GUESTFISH_PATH_ENVVAR = 'EXTRACTCODE_GUESTFISH_PATH'

0 commit comments

Comments
 (0)