Forum archive
Unable add nfs support using tklpatch
I've been building cusotm images for a while now and have never really come across and issues that I can work around.
However, I've come across an issue that I'm really struggling to work around and hope someone can give me a few pointers.
I need to add nfs support to an appliance I'm building, and am trying to add nfs-kernel-server and nfs-common packages. However as soon as I add either of them i hit issues.
To make things simple I created a patch with just those two packages - same prolem. It always happens at the same point. It doesn't give any error and it always leaves the chroot-proc system mounted.
I originally throught it was something to do with nfs being running causing the issue, but even when ensuring the service is stopped, I still have the same issues.
At this pointed I'm really stumped and my google foo isn't really helping me either...
The patch file contains:
prae@build test/build$ cat ../tklpatch/leechbox/conf
#!/bin/bash -ex
# simple nfs test
export HOSTNAME=nfstest
export USERNAME=test
export GROUPNAME=test
# set hostname
echo "$HOSTNAME" > /etc/hostname
sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hosts
# create the nzb userid (which all the nzb daemons run as)
groupadd $GROUPNAME
useradd -c "App userid" -d /home/$USERNAME -g $GROUPNAME -m -s /bin/bash "$USERNAME"
chown -R $USERNAME:$GROUPNAME /home/$USERNAME
# add the python installation tools, sudo and nfs support
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y \
-o DPkg::Options::=--force-confdef \
-o DPkg::Options::=--force-confold \
install nfs-kernel-server nfs-common
service nfs-kernel-server stop
service nfs-common stop
####################################################
# MAKE SURE ALL FILES HAVE CORRECT OWNER
####################################################
chown -R $USERNAME:$GROUPNAME /home/$USERNAME
####################################################
# done!
####################################################
exit
Hmmm not sure how to format a code block.
Conf file can be found here: - http://pastebin.com/5Z56fN9U
Failled build can be found here: - http://pastebin.com/9tTCN1kR
Last line in build is: