Skip to content

Commit c236b71

Browse files
authored
Merge pull request #574 from stgraber/main
Improve the debug application
2 parents 2be205f + 573ebdf commit c236b71

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

doc/contributing.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ Then `exec` into the virtual machine, stop the main `incus-osd` service and run
5353
mount -o bind /root/incus-osd /usr/local/bin/incus-osd
5454
systemctl start incus-osd
5555

56-
There's no text editor in the base image, but it's easy to fetch the [micro](https://github.com/zyedidia/micro) text editor:
57-
58-
mkdir /tmp/micro/
59-
curl -sLo /tmp/micro/micro.tar.gz https://github.com/zyedidia/micro/releases/download/v2.0.14/micro-2.0.14-linux64-static.tar.gz
60-
tar -xzf /tmp/micro/micro.tar.gz -C /tmp/micro --strip-components=1
61-
mv /tmp/micro/micro /root/micro
62-
rm -rf /tmp/micro
63-
export EDITOR=/root/micro
56+
When debugging, it's a good idea to install the `debug` application which contains a variety of useful tools, including a basic text editor (`nano`).
57+
58+
incus exec test-incus-os bash
59+
curl --unix-socket /run/incus-os/unix.socket socket/1.0/applications -X POST -d '{"name": "debug"}'

mkosi.images/debug/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Packages=
1414
ifstat
1515
iputils-ping
1616
mtr-tiny
17+
nano
1718
net-tools
1819
netcat-openbsd
1920
procps

0 commit comments

Comments
 (0)