Hi all,
The following code runs fine in the VM from the terminal:
sudo su -
mount -t 9p config /mnt
cd /mnt
./install.sh
exit
However, when I converted the commands to my bash script and try to run
this code , it fails:
cd /mnt
sudo mount -t 9p config /mnt
sudo /mnt/install.sh
The error it gives me is:
"This script must be run from within the 9p mount"
Can someone explain how I can accomplish the intent of this code?
Hi all,
I've been using linux (Ubuntu/Mint mainly) for 20 years and I still
find things that I don't understand. I need some help!
I have a need to run the following code after generating a virtual
machine in LXD. The following code runs fine in the VM from the
terminal:
sudo su -
mount -t 9p config /mnt
cd /mnt
./install.sh
exit
However, when I converted the commands to my bash script and try to
run this code , it fails:
cd /mnt
sudo mount -t 9p config /mnt
sudo /mnt/install.sh--
.
.
The error it gives me is:
"This script must be run from within the 9p mount"
rsutton <rsutton43@comcast.net> writes:
Hi all,
I've been using linux (Ubuntu/Mint mainly) for 20 years and I still
find things that I don't understand. I need some help!
I have a need to run the following code after generating a virtual
machine in LXD. The following code runs fine in the VM from the
terminal:
sudo su -
mount -t 9p config /mnt
cd /mnt
./install.sh
exit
However, when I converted the commands to my bash script and try to
run this code , it fails:
cd /mnt
After this your current working directory is the /mnt directory in the
root filesystem.
sudo mount -t 9p config /mnt
After the mount command, the path /mnt refers to the root of the 9p filesystem (whatever that is). But your current working directory
remains the (now hidden) /mnt directory of the root filesystem.
So the answer is to move the rCycdrCO command in your script one line down.
sudo /mnt/install.sh
.
.
The error it gives me is:
"This script must be run from within the 9p mount"
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 16:16:18 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
3 files (2,681K bytes) |
| Messages: | 184,405 |
| Posted today: | 1 |