Skip to content

Commit 7f5cb3e

Browse files
committed
Update external docs
1 parent ac4ca58 commit 7f5cb3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

external/source/HACKING.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,20 +331,22 @@ If the above systemd-sysext approach does not work for you, you can also test
331331
changes with some bind mounts.
332332

333333
To test changes to the login page, you can bind-mount the build tree's
334-
`dist/static/` directory over the system one:
334+
`dist/` directory over the system one:
335335

336-
sudo mount -o bind dist/static/ /usr/share/cockpit/static/
336+
sudo mount -o bind dist /usr/share/cockpit
337337

338338
Likewise, to test changes to the branding, use:
339339

340340
sudo mount -o bind src/branding/ /usr/share/cockpit/branding/
341341

342+
Do `mkdir dist/branding` if you run both of these commands at the same time.
343+
342344
After that, run `systemctl stop cockpit.service` to ensure that the web server
343345
restarts on the next browser request.
344346

345347
To make Cockpit use system-installed code again, umount the paths:
346348

347-
sudo umount /usr/share/cockpit/static/ /usr/share/cockpit/branding/
349+
sudo umount /usr/share/cockpit /usr/share/cockpit/branding/
348350
systemctl stop cockpit.service
349351

350352
Similarly, if you change `cockpit-ws` itself, you can make the system (systemd

0 commit comments

Comments
 (0)