Skip to contentSkip to conversation

NFS locking with NFS-Root

OT Jan-Benedict Glaw 2 participants 2 messages Jan 15, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

Hi!

I've got an Indy now, and I want to make it install (with the current debian dbootstrap) on a NFS root. So I first go to mount the NFS server to /target and then proceed with the installation. All .deb's get downloaded, but they cannot be extracted because dpkg can't lock /var/lib/dpkg/lock .

Dumb question: How do I make file locking (via fcntl(F_SETLK)) functional?

MfG, JBG

Signature · 3 lines
Jan-Benedict Glaw   .   [email protected]   .   +49-172-7608481
	 -- New APT-Proxy written in shell script --
	   http://lug-owl.de/~jbglaw/software/ap2/
#1 lore raw
Quoted 8 lines · Jan-Benedict Glaw

I've got an Indy now, and I want to make it install (with the current debian dbootstrap) on a NFS root. So I first go to mount the NFS server to /target and then proceed with the installation. All .deb's get downloaded, but they cannot be extracted because dpkg can't lock /var/lib/dpkg/lock .

Dumb question: How do I make file locking (via fcntl(F_SETLK)) functional?

place your lock files into the ramdisk.

ladis