Skip to content

Rebrand project to PiSCSI#1016

Merged
rdmark merged 35 commits intodevelopfrom
rdmark-rebrand-piscsi
Dec 5, 2022
Merged

Rebrand project to PiSCSI#1016
rdmark merged 35 commits intodevelopfrom
rdmark-rebrand-piscsi

Conversation

@rdmark
Copy link
Copy Markdown
Member

@rdmark rdmark commented Dec 4, 2022

  • rascsi ->piscsi
  • rasctl -> scsictl
  • rasdump -> scsidump
  • ras* -> piscsi* (rasutil -> piscsi_util, etc.)
  • Removed the 'Reloaded' app name from the piscsi launch Banner, and added a line break before the Version

TODO:

  • Test that the code compiles and the apps run
  • Test that the web app runs
  • Test that the oled script runs
  • Test that the ctrlboard script runs
  • Test that the easyinstall.sh script runs
  • Run all the unit tests
  • Run all the web app tests

@rdmark rdmark mentioned this pull request Dec 4, 2022
@rdmark rdmark marked this pull request as ready for review December 4, 2022 08:07
@rdmark rdmark force-pushed the rdmark-rebrand-piscsi branch from 76c3f28 to 66f88e9 Compare December 4, 2022 19:42
@rdmark rdmark requested a review from akuker December 4, 2022 20:37
@rdmark rdmark requested a review from akuker December 5, 2022 00:28
@rdmark rdmark requested a review from nucleogenic December 5, 2022 05:52
Copy link
Copy Markdown
Member

@nucleogenic nucleogenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up, I haven't done any testing yet, e.g. a v22.10.01 -> develop upgrade, but I've approved the PR since we might want to merge anyway, rather than have a massive and long-lived feature branch.

There are more instances of rascsi-containing files that need to be renamed or deleted for users doing an upgrade, e.g the systemd services, but I haven't added comments to the PR for each one.

We might also want to make sure that the old rascsi services are stopped to avoid duplicate processes running (or rather the new services failing to start due to ports being in use).

Comment on lines -212 to -213
-keyout "$SSL_KEYS_PATH/rascsi-web.key" \
-out "$SSL_CERTS_PATH/rascsi-web.crt" \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider deleting these files if they exist.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be non-kosher to rename them? Anyhow, I'll address this in the next PR.

easyinstall.sh Outdated
Comment on lines +301 to +303
if [[ -f "$HOME/.piscsi_secret" ]]; then
sudo rm "$HOME/.piscsi_secret"
echo "Removed (legacy) PiSCSI token file"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file .piscsi_secret should never exist, so we should continue to check for .rascsi_secret.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it should never exist in the HOME dir. I'll push a quick fix for that.

echo "Modified /etc/dhcpcd.conf"

# default config file is made for eth0, this will set the right net interface
sudo bash -c 'sed s/eth0/'"$LAN_INTERFACE"'/g '"$CPP_PATH"'/os_integration/rascsi_bridge > /etc/network/interfaces.d/rascsi_bridge'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to rename rascsi_bridge to piscsi_bridge if it already exists?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, and I'll address this in the next PR.

if [ -f "$WEB_INSTALL_PATH/src/rascsi_interface_pb2.py" ]; then
sudo rm "$WEB_INSTALL_PATH/src/rascsi_interface_pb2.py"
echo "Deleting old Python protobuf library $WEB_INSTALL_PATH/src/rascsi_interface_pb2.py"
if [ -f "$WEB_INSTALL_PATH/src/piscsi_interface_pb2.py" ]; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we delete rascsi_interface_pb2.py if it already exists?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely! I'll do it in the next PR.

@rdmark rdmark merged commit 52c2aa4 into develop Dec 5, 2022
@rdmark rdmark deleted the rdmark-rebrand-piscsi branch December 5, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants