Extracting DriverPacks Error: Directory Not Found

Antworten
Archimedes
Beiträge: 7
Registriert: 24 Jun 2010, 19:44

Extracting DriverPacks Error: Directory Not Found

Beitrag von Archimedes »

Hello there,

I have installed an OPSI server and am able to PXE boot and install a W2K3 OS onto it, which is great. I am now working on installing drivers downloaded from driverpacks.net, but am running into some trouble with the install script:

opsi:/opt/pcbin/install/win2003# ./extract_driver_pack.py /opt/pcbin/install/win2003/DP_LAN_wnt5_x86-32_10051.7z
Directory '/opt/pcbin/install/win2003/DP_LAN_wnt5_x86-32_10051.7z' not found

opsi:/opt/pcbin/install/win2003# ls -l
total 7832
-rw-r--r-- 1 opsiconfd pcpatch 7748211 May 31 11:44 DP_LAN_wnt5_x86-32_10051.7z

Could someone please point out what I am missing here? The script does not attempt to extract the .7z archive and just seems to fall through?

Thank you,
Pete
Archimedes
Beiträge: 7
Registriert: 24 Jun 2010, 19:44

Re: Extracting DriverPacks Error: Directory Not Found

Beitrag von Archimedes »

I did then see this post:
https://forum.uib.de/viewtopic.php?f=8& ... e963c985af

Which just says to create a /tmp/dpdl directory and put the 7z files there, however the script shows that it checks for this directory, and if not present create it, so this should not really matter:

Code: Alles auswählen

def unpack():
        if not os.path.exists(DST_DIR):
                os.mkdir(DST_DIR)
        if not os.path.exists( os.path.join(DST_DIR, 'drivers') ):
                os.mkdir( os.path.join(DST_DIR, 'drivers') )
        os.chdir( os.path.join(DST_DIR, 'drivers') )
        for f in os.listdir(TMP_DIR):
                if not f.endswith('.7z'):
                        continue
                print "Extracting: %s" % f
                fh = os.popen("%s -y x %s 2>&1" % (BIN_7Z, os.path.join(TMP_DIR, f)))
                for line in fh.readlines():
                        line = line.rstrip()
                        print line
                fh.close()
In any event, despite moving the 7z driverpack to /tmp/dpdl I get the same error.

Thank you,
Pete
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1789
Registriert: 29 Mai 2008, 15:14

Re: Extracting DriverPacks Error: Directory Not Found

Beitrag von j.schneider »

Please create the folder /tmp/dpdl
Put all the downloaded .7z archives into that folder.
Then run

Code: Alles auswählen

cd /opt/pcbin/install/win2003
./extract_driver_pack.py
Archimedes
Beiträge: 7
Registriert: 24 Jun 2010, 19:44

Re: Extracting DriverPacks Error: Directory Not Found

Beitrag von Archimedes »

Hi there,

Thanks for the suggestion. In my case simply moving the 7z files to /tmp/dpdl did not work, I get the same "directory not found" error, but by specifying the directory and then the archive it extracts correctly, this was the only way I was able to get it to work.

Code: Alles auswählen

opsi:/opt/pcbin/install/win2003# ls /tmp/dpdl/
DP_LAN_wnt5_x86-32_10051.7z  drivers

opsi:/opt/pcbin/install/win2003# ./extract_driver_pack.py 

Please download driverpacks from http://driverpacks.net manually.
Execute `./extract_driver_pack.py /path/to/driverpacks` to unpack them.

opsi:/opt/pcbin/install/win2003# ./extract_driver_pack.py DP_LAN_wnt5_x86-32_10051.7z 
Directory 'DP_LAN_wnt5_x86-32_10051.7z' not found
This however works okay:

Code: Alles auswählen

opsi:/opt/pcbin/install/win2003# ./extract_driver_pack.py /opt/pcbin/install/win2003
You have to pass the argument of the directory when calling extract_driver_pack.py, and it then seems to run fine.

Cheers,
Pete
Antworten