Bug #3365
Context iso not found on old CentOS 5.x
| Status: | Closed | Start date: | 11/18/2014 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | Context | |||
| Target version: | Release 4.14 | |||
| Resolution: | fixed | Pull request: | ||
| Affected Versions: | OpenNebula 4.10 |
Description
The path /dev/disk/by-label/CONTEXT is not created may be due to udev rules to create a /dev/cdrom instead.
The /etc/init.d/vmcontext is installed via the one-context_4.8.0.rpm. BTW it works one CentOS6 or 7.
Had to patch it as followed to work on CentOS 5:
--- /etc/init.d/vmcontext.ori 2014-11-18 15:11:16.000000000 +0100
+++ /etc/init.d/vmcontext 2014-11-18 15:12:40.000000000 +0100
@@ -52,7 +52,8 @@
case "$1" in
"start")
- if [ -e "/dev/disk/by-label/CONTEXT" ]; then
+ CONTEXT_DEV=`blkid -l -t LABEL="CONTEXT" -o device`
+ if [ -e "$CONTEXT_DEV" ]; then
mount -t iso9660 -L CONTEXT -o ro /mnt
if [ -f /mnt/context.sh ]; then
export_rc_vars /mnt/context.sh
Best regards.
History
#1
Updated by Ruben S. Montero over 6 years ago
- Priority changed from None to Normal
#2
Updated by Ruben S. Montero over 6 years ago
- Category set to Context
- Status changed from Pending to New
- Target version set to Release 4.14
#3
Updated by Ruben S. Montero about 6 years ago
- Assignee set to Javi Fontan
#4
Updated by Javi Fontan about 6 years ago
- Status changed from New to Closed
- Resolution set to fixed
Added to the context repository, thanks!!
https://github.com/OpenNebula/addon-context-linux/commit/d54cad784b0978f18059762174c6dcc8724c0fb4