VirtualBox

3 年 前 建立

3 年 前 結束

#20780 closed defect (fixed)

VBox 6.1.30 and 6.1.32 GAs in S10 guests produce error on install and are unable to be uninstalled => fixed in trunk/6.1.x x>32

回報者: rlhamil 負責人:
元件: other 版本: VirtualBox 6.1.32
關鍵字: 副本:
Guest type: other Host type: other

描述

For the Solaris Guest Additions, the line in install/postinstall and install/preremove that looks like (give or take leading spaces:

       refgroup=$(LC_ALL=C /usr/bin/ls -lL /etc/dev/reserved_devnames | awk '{ print $4 }' 2>/dev/null)

should use backticks ( pair) rather than $( ) notation, because /bin/sh on Solaris 10 does not support $( )

Otherwise, both install and remove partially fail. (tested this by extracting the package, editing those scripts, and editing the manifest to reflect the modified sizes and checksums of those scripts)

This is actually present in at least 6.1.30 and 6.1.32.

更動歷史 (4)

comment:1 3 年 前paulson 編輯

摘要: guest additions install or remove fails on Solaris 10VBox 6.1.30 Guest Additions install or remove fails on Solaris 10 => fixed in 6.1.32
狀態: newclosed
處理結果: fixed

This was introduced in VirtualBox 6.1.30 but is fixed in 6.1.32:

--- 6.1.30/SUNWvbox/root/opt/VirtualBox/vboxconfig.sh   2021-11-22 07:37:50.000000000 -0800
+++ 6.1.32/SUNWvbox/root/opt/VirtualBox/vboxconfig.sh   2022-01-13 11:22:34.000000000 -0800
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: vboxconfig.sh 148369 2021-11-18 17:57:43Z klaus $
+# $Id: vboxconfig.sh 148547 2021-11-30 14:31:14Z klaus $
 ## @file
 # VirtualBox Configuration Script, Solaris host.
 #
@@ -679,7 +679,7 @@
     if [ -f "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" ]; then
         # Solaris 11 SRU6 and later use group root (check a file which isn't
         # tainted by VirtualBox install scripts and allow no other group)
-        refgroup=$(LC_ALL=C /usr/bin/ls -lL "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" | awk '{ print $4 }' 2>/dev/null)
+        refgroup=`LC_ALL=C /usr/bin/ls -lL "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" | awk '{ print $4 }' 2>/dev/null`
         if [ $? -eq 0 -a "x$refgroup" = "xroot" ]; then
             group=root
         fi
@@ -807,7 +807,7 @@
     if [ -f "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" ]; then
         # Solaris 11 SRU6 and later use group root (check a file which isn't
         # tainted by VirtualBox install scripts and allow no other group)
-        refgroup=$(LC_ALL=C /usr/bin/ls -lL "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" | awk '{ print $4 }' 2>/dev/null)
+        refgroup=`LC_ALL=C /usr/bin/ls -lL "$PKG_INSTALL_ROOT/etc/dev/reserved_devnames" | awk '{ print $4 }' 2>/dev/null`
         if [ $? -eq 0 -a "x$refgroup" = "xroot" ]; then
             group=root
         fi

comment:2 3 年 前paulson 編輯

狀態: closedreopened
處理結果: fixed

Note that if a Solaris 10 guest does have the 6.1.30 GAs installed the following edit to the /var/sadm/pkg/SUNWvboxguest/install/preremove file (as root) is needed in order for 'pkgrm SUNWvboxguest' to succeed:

@@ -53,7 +53,7 @@
 if [ -f /etc/dev/reserved_devnames ]; then
     # Solaris 11 SRU6 and later use group root (check a file which isn't
     # tainted by VirtualBox install scripts and allow no other group)
-    refgroup=$(LC_ALL=C /usr/bin/ls -lL /etc/dev/reserved_devnames | awk '{ print $4 }' 2>/dev/null)
+    refgroup=`LC_ALL=C /usr/bin/ls -lL /etc/dev/reserved_devnames | awk '{ print $4 }' 2>/dev/null`
     if [ $? -eq 0 -a "x$refgroup" = "xroot" ]; then
         group=root
     fi

comment:3 3 年 前paulson 編輯

摘要: VBox 6.1.30 Guest Additions install or remove fails on Solaris 10 => fixed in 6.1.32VBox 6.1.30 and 6.1.32 GAs in S10 guests produce error on install and are unable to be uninstalled => fixed in trunk/6.1.x x>32

Upon closer inspection it turns out that a few more files needed to be updated so the full fix will be part of the next maintenance release of VirtualBox. The fix will also be available in any Guest Additions (GAs) downloaded from the Testbuilds which are later than revision r149820.

To summarize, this issue affects VirtualBox GAs from 6.1.30 and 6.1.32 which are installed in Solaris 10 guests. Due to this issue, it isn't possible to remove the VirtualBox GAs package, SUNWvboxguest, until the following change is made to /var/sadm/pkg/SUNWvboxguest/install/preremove (as root):

@@ -53,7 +53,7 @@
 if [ -f /etc/dev/reserved_devnames ]; then
     # Solaris 11 SRU6 and later use group root (check a file which isn't
     # tainted by VirtualBox install scripts and allow no other group)
-    refgroup=$(LC_ALL=C /usr/bin/ls -lL /etc/dev/reserved_devnames | awk '{ print $4 }' 2>/dev/null)
+    refgroup=`LC_ALL=C /usr/bin/ls -lL /etc/dev/reserved_devnames | awk '{ print $4 }' 2>/dev/null`
     if [ $? -eq 0 -a "x$refgroup" = "xroot" ]; then
         group=root
     fi  

comment:4 3 年 前galitsyn 編輯

狀態: reopenedclosed
處理結果: fixed

The issue should be fixed in VirtualBox 6.1.34. Closing.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette