History log of /openbmc/openbmc-tools/overlay/ (Results 1 – 8 of 8)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e310dd9107-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Pa

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If16d2fd802a2d452234d8b56b41e79d030138a6b

show more ...


/openbmc/openbmc-tools/.linter-ignore
/openbmc/openbmc-tools/.shellcheck-ignore
/openbmc/openbmc-tools/OWNERS
/openbmc/openbmc-tools/README.md
/openbmc/openbmc-tools/altitude/altitude
/openbmc/openbmc-tools/autojson/autojson.py
/openbmc/openbmc-tools/bbdbg/bbdbg
/openbmc/openbmc-tools/bi2cp/README.md
/openbmc/openbmc-tools/bi2cp/bi2cp
/openbmc/openbmc-tools/dbus-pcap/README.md
/openbmc/openbmc-tools/dbus-pcap/dbus-pcap
/openbmc/openbmc-tools/dbus-top/.clang-format
/openbmc/openbmc-tools/dbus-top/.gitignore
/openbmc/openbmc-tools/dbus-top/README.md
/openbmc/openbmc-tools/dbus-top/analyzer.cpp
/openbmc/openbmc-tools/dbus-top/analyzer.hpp
/openbmc/openbmc-tools/dbus-top/bargraph.hpp
/openbmc/openbmc-tools/dbus-top/dbus_capture.cpp
/openbmc/openbmc-tools/dbus-top/dbus_capture.hpp
/openbmc/openbmc-tools/dbus-top/dbus_top_recipe.bb
/openbmc/openbmc-tools/dbus-top/histogram.hpp
/openbmc/openbmc-tools/dbus-top/main.cpp
/openbmc/openbmc-tools/dbus-top/main.hpp
/openbmc/openbmc-tools/dbus-top/menu.cpp
/openbmc/openbmc-tools/dbus-top/menu.hpp
/openbmc/openbmc-tools/dbus-top/meson.build
/openbmc/openbmc-tools/dbus-top/rect.hpp
/openbmc/openbmc-tools/dbus-top/sensorhelper.cpp
/openbmc/openbmc-tools/dbus-top/sensorhelper.hpp
/openbmc/openbmc-tools/dbus-top/subprojects/fmt.wrap
/openbmc/openbmc-tools/dbus-top/subprojects/sdbusplus.wrap
/openbmc/openbmc-tools/dbus-top/views.cpp
/openbmc/openbmc-tools/dbus-top/views.hpp
/openbmc/openbmc-tools/dbus-top/xmlparse.cpp
/openbmc/openbmc-tools/dbus-top/xmlparse.hpp
/openbmc/openbmc-tools/dbus-vis/README.md
/openbmc/openbmc-tools/dbus-vis/dbus_pcap_loader.js
/openbmc/openbmc-tools/dbus-vis/dbus_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/dbus_vis.css
/openbmc/openbmc-tools/dbus-vis/index.html
/openbmc/openbmc-tools/dbus-vis/info_panel.js
/openbmc/openbmc-tools/dbus-vis/initialization.js
/openbmc/openbmc-tools/dbus-vis/ipmi_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/linecount.py
/openbmc/openbmc-tools/dbus-vis/main.js
/openbmc/openbmc-tools/dbus-vis/package.json
/openbmc/openbmc-tools/dbus-vis/timeline_view.js
/openbmc/openbmc-tools/dbusView/dbusView.py
/openbmc/openbmc-tools/dbus_sensor_tester/dbus_sensor_tester.bb
/openbmc/openbmc-tools/dbus_sensor_tester/main.cpp
/openbmc/openbmc-tools/dbus_sensor_tester/meson.build
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/boost.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/cli11.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/sdbusplus.wrap
/openbmc/openbmc-tools/ddconvnotrunc/ddconvnotrunc
/openbmc/openbmc-tools/expectedJsonChecker/README.md
/openbmc/openbmc-tools/format-yaml/format-yaml.py
/openbmc/openbmc-tools/ipkdbg/Makefile
/openbmc/openbmc-tools/ipkdbg/README.md
/openbmc/openbmc-tools/ipkdbg/build-opkg
/openbmc/openbmc-tools/ipkdbg/ipkdbg.in
/openbmc/openbmc-tools/netboot/README.md
/openbmc/openbmc-tools/netboot/netboot
/openbmc/openbmc-tools/openbmc-autobump/openbmc-autobump.py
/openbmc/openbmc-tools/openbmctool/README.md
overlay
/openbmc/openbmc-tools/prepare-emmc-qemu/prepare-emmc-qemu
/openbmc/openbmc-tools/pretty-journal/pretty-journal.py
/openbmc/openbmc-tools/reboot-ping-pong/rpp
/openbmc/openbmc-tools/rootfs_size/rootfs_size.py
/openbmc/openbmc-tools/sensor_yaml_config/README.md
/openbmc/openbmc-tools/sensor_yaml_config/sensor_map.yaml
/openbmc/openbmc-tools/sensor_yaml_config/sensor_yaml_config.py
/openbmc/openbmc-tools/tof-voters/README.md
/openbmc/openbmc-tools/tof-voters/libvoters/entry_point.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-commits.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-reviews.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/dump-gerrit.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/report.py
/openbmc/openbmc-tools/tof-voters/libvoters/time.py
/openbmc/openbmc-tools/tracing/README.md
/openbmc/openbmc-tools/tracing/trace
/openbmc/openbmc-tools/witherspoon-debug/README.md
/openbmc/openbmc-tools/witherspoon-debug/debug
c49e2c5c03-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

overlay: Give metadata dirs the same permissions as the target

This fixes an issue where overlaying directories such as /lib would
break non-root users because the permissions would be restricted to

overlay: Give metadata dirs the same permissions as the target

This fixes an issue where overlaying directories such as /lib would
break non-root users because the permissions would be restricted to
0700 as a byproduct of `mktemp -d`.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Id52112200ba4198cab095559c06bd0caf3635240

show more ...

2f6ab50f07-Dec-2021 Andrew Jeffery <andrew@aj.id.au>

overlay: Print error message to stderr

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie9f40997bc6a87ef4eb8f157e9b764a2b2e6a641

811a575807-Dec-2021 Andrew Jeffery <andrew@aj.id.au>

overlay: Accept multiple targets for add and remove subcommands

Make operating on overlays less tedious

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I29897c85adec7987e0302ee17802280c3

overlay: Accept multiple targets for add and remove subcommands

Make operating on overlays less tedious

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I29897c85adec7987e0302ee17802280c3ab591c0

show more ...

727d135f07-Dec-2021 Andrew Jeffery <andrew@aj.id.au>

overlay: Be explicit about the subcommand

This allows us to treat the remaining arguments as a list tail. However
for now assume we have just the one tail element.

Signed-off-by: Andrew Jeffery <an

overlay: Be explicit about the subcommand

This allows us to treat the remaining arguments as a list tail. However
for now assume we have just the one tail element.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Id6ef984e37c5d4b6dace6ca338db58716aee86e8

show more ...

f6823abd07-Dec-2021 Andrew Jeffery <andrew@aj.id.au>

overlay: Lift remove implementation to overlay_remove()

Improve readability by isolating the implementation

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie0fc7857a9d882c29d0406445afa0

overlay: Lift remove implementation to overlay_remove()

Improve readability by isolating the implementation

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie0fc7857a9d882c29d0406445afa053e3adeb591

show more ...

dc68110507-Dec-2021 Andrew Jeffery <andrew@aj.id.au>

overlay: Lift add implementation to overlay_add()

Isolate the functionality to improve readability

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I1f0abdd33291aa14f53c0220fb5c714b181acb

overlay: Lift add implementation to overlay_add()

Isolate the functionality to improve readability

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I1f0abdd33291aa14f53c0220fb5c714b181acb97

show more ...

ba2e744d06-Sep-2021 Andrew Jeffery <andrew@aj.id.au>

Add overlay script

`overlay` does the tedious work of setting up and tearing down the
environment required for overlay filesystems. Example use:

```
root@bmc:~# touch /usr/share/vpd/foo
touch: /usr

Add overlay script

`overlay` does the tedious work of setting up and tearing down the
environment required for overlay filesystems. Example use:

```
root@bmc:~# touch /usr/share/vpd/foo
touch: /usr/share/vpd/foo: Read-only file system
root@bmc:~# ./overlay add /usr/share/vpd
[53864.956641] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
root@bmc:~# touch /usr/share/vpd/foo
root@bmc:~# ls -l /usr/share/vpd/foo
-rw-r--r-- 1 root root 0 Sep 6 23:55 /usr/share/vpd/foo
root@bmc:~# rm /usr/share/vpd/foo
root@bmc:~# ls -l /usr/share/vpd/foo
ls: /usr/share/vpd/foo: No such file or directory
root@bmc:~# ./overlay remove /usr/share/vpd
root@bmc:~# touch /usr/share/vpd/foo
touch: /usr/share/vpd/foo: Read-only file system
```

The `rm -rf` specifically removes the temporary directories specified
in the mount options:

```
root@bmc:~# ./overlay add /usr/share/vpd
root@bmc:~# sh -x ./overlay remove /usr/share/vpd
+ set -eu
+ '[' 2 -lt 2 ']'
+ case $1 in
+ o_lowerdir=/usr/share/vpd
++ fstab_fs_mntopt /usr/share/vpd
++ awk '"overlay" == $1 && "/usr/share/vpd" == $2 { printf("%s\n", $4)
}'
+
o_options=rw,relatime,lowerdir=/usr/share/vpd,upperdir=/tmp/tmp.v8vJ35,workdir=/tmp/tmp.6v1YJY
+ umount /usr/share/vpd
+ '[' -z
rw,relatime,lowerdir=/usr/share/vpd,upperdir=/tmp/tmp.v8vJ35,workdir=/tmp/tmp.6v1YJY
']'
+ fstab_option_iter
+ tr , '\n'
+ echo
rw,relatime,lowerdir=/usr/share/vpd,upperdir=/tmp/tmp.v8vJ35,workdir=/tmp/tmp.6v1YJY
+ read FS_MNTOPT
+ case $FS_MNTOPT in
+ read FS_MNTOPT
+ case $FS_MNTOPT in
+ read FS_MNTOPT
+ case $FS_MNTOPT in
+ read FS_MNTOPT
+ case $FS_MNTOPT in
++ echo upperdir=/tmp/tmp.v8vJ35
++ fstab_option_value
++ cut -d= -f2
+ rm -rf /tmp/tmp.v8vJ35
+ read FS_MNTOPT
+ case $FS_MNTOPT in
++ fstab_option_value
++ cut -d= -f2
++ echo workdir=/tmp/tmp.6v1YJY
+ rm -rf /tmp/tmp.6v1YJY
+ read FS_MNTOPT
root@bmc:~#
```

It also safely handles bad remove invocations:

```
root@bmc:~# sh -x ./overlay remove /asdf
+ set -eu
+ '[' 2 -lt 2 ']'
+ case $1 in
+ o_lowerdir=/asdf
++ fstab_fs_mntopt /asdf
++ awk '"overlay" == $1 && "/asdf" == $2 { printf("%s\n", $4) }'
+ o_options=
+ umount /asdf
umount: /asdf: no mount point specified.
root@bmc:~# sh -x ./overlay remove /
+ set -eu
+ '[' 2 -lt 2 ']'
+ case $1 in
+ o_lowerdir=/
++ fstab_fs_mntopt /
++ awk '"overlay" == $1 && "/" == $2 { printf("%s\n", $4) }'
+ o_options=
+ umount /
+ '[' -z '' ']'
+ echo / is not an overlay
/ is not an overlay
+ exit 1
root@bmc:~#
```

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I0118c645d9edf391d9670aacc889f31d1e1b2f5f

show more ...


/openbmc/openbmc-tools/LICENSE
/openbmc/openbmc-tools/MAINTAINERS
/openbmc/openbmc-tools/README.md
/openbmc/openbmc-tools/adcapp/LICENSE
/openbmc/openbmc-tools/adcapp/Makefile.am
/openbmc/openbmc-tools/adcapp/README
/openbmc/openbmc-tools/adcapp/configure.ac
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.c
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.h
/openbmc/openbmc-tools/adcapp/src/Makefile.am
/openbmc/openbmc-tools/adcapp/src/adc.h
/openbmc/openbmc-tools/adcapp/src/adcapp.c
/openbmc/openbmc-tools/adcapp/src/adcifc.c
/openbmc/openbmc-tools/adcapp/src/adcifc.h
/openbmc/openbmc-tools/altitude/altitude
/openbmc/openbmc-tools/autojson/autojson.py
/openbmc/openbmc-tools/bi2cp/README.md
/openbmc/openbmc-tools/bi2cp/bi2cp
/openbmc/openbmc-tools/bi2cp/requirements.txt
/openbmc/openbmc-tools/cla-signers/README.md
/openbmc/openbmc-tools/cla-signers/update-cla.sh
/openbmc/openbmc-tools/dbus-pcap/README.md
/openbmc/openbmc-tools/dbus-pcap/dbus-pcap
/openbmc/openbmc-tools/dbus-pcap/requirements.txt
/openbmc/openbmc-tools/dbusView/dbusView.py
/openbmc/openbmc-tools/ddconvnotrunc/ddconvnotrunc
/openbmc/openbmc-tools/expectedJsonChecker/LICENSE
/openbmc/openbmc-tools/expectedJsonChecker/README.md
/openbmc/openbmc-tools/expectedJsonChecker/expectedJsonChecker.py
/openbmc/openbmc-tools/format-yaml/LICENSE
/openbmc/openbmc-tools/format-yaml/format-yaml.py
/openbmc/openbmc-tools/maintainers/README.md
/openbmc/openbmc-tools/maintainers/obmc-gerrit
/openbmc/openbmc-tools/maintainers/obmc/__init__.py
/openbmc/openbmc-tools/maintainers/obmc/maintainers.py
/openbmc/openbmc-tools/maintainers/obmc/reviewlist.py
/openbmc/openbmc-tools/maintainers/requirements.txt
/openbmc/openbmc-tools/maintainers/setup.py
/openbmc/openbmc-tools/maintainers/split_maintainers.py
/openbmc/openbmc-tools/netboot/README.md
/openbmc/openbmc-tools/netboot/netboot
/openbmc/openbmc-tools/openbmc-autobump/openbmc-autobump.py
/openbmc/openbmc-tools/openbmc-events/LICENSE
/openbmc/openbmc-tools/openbmc-events/README.md
/openbmc/openbmc-tools/openbmc-events/openbmc-events
/openbmc/openbmc-tools/openbmc-events/openbmc-sensors
/openbmc/openbmc-tools/openbmc-events/openbmc-sfw
/openbmc/openbmc-tools/openbmctool/README.md
/openbmc/openbmc-tools/openbmctool/build-scripts/Makefile
/openbmc/openbmc-tools/openbmctool/build-scripts/control
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel7.spec
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel8.spec
/openbmc/openbmc-tools/openbmctool/openbmctool.py
/openbmc/openbmc-tools/openbmctool/policyTable.json
overlay
/openbmc/openbmc-tools/pldm/pdrdump.sh
/openbmc/openbmc-tools/pretty-journal/pretty-journal.py
/openbmc/openbmc-tools/pwmtachtool/LICENSE
/openbmc/openbmc-tools/pwmtachtool/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/README
/openbmc/openbmc-tools/pwmtachtool/configure.ac
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.c
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.h
/openbmc/openbmc-tools/pwmtachtool/src/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/src/libpwmtach.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach.c
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach_ioctl.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtachtool.c
/openbmc/openbmc-tools/reboot-ping-pong/requirements.txt
/openbmc/openbmc-tools/reboot-ping-pong/rpp
/openbmc/openbmc-tools/reboot/petitboot.exp
/openbmc/openbmc-tools/reboot/reboot.sh
/openbmc/openbmc-tools/rootfs_size/results.txt
/openbmc/openbmc-tools/rootfs_size/rootfs_size.py
/openbmc/openbmc-tools/sensor_yaml_config/LICENSE
/openbmc/openbmc-tools/sensor_yaml_config/README.md
/openbmc/openbmc-tools/sensor_yaml_config/sensor_map.yaml
/openbmc/openbmc-tools/sensor_yaml_config/sensor_yaml_config.py
/openbmc/openbmc-tools/tracing/README.md
/openbmc/openbmc-tools/tracing/trace
/openbmc/openbmc-tools/upload_and_update/LICENSE
/openbmc/openbmc-tools/upload_and_update/README.md
/openbmc/openbmc-tools/upload_and_update/upload_and_update.py
/openbmc/openbmc-tools/witherspoon-debug/README.md
/openbmc/openbmc-tools/witherspoon-debug/debug
/openbmc/openbmc-tools/witherspoon-debug/libncurses.so.5.9
/openbmc/openbmc-tools/witherspoon-debug/libncursesw.so.5.9