Bug 12863 - ExtraHD - can’t remove mount point via the Webinterface
Summary: ExtraHD - can’t remove mount point via the Webinterface
Status: NEW
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: all All
: - Unknown - Minor Usability
Assignee: Assigned to nobody - feel free to grab it and work on it
QA Contact:
URL: https://community.ipfire.org/t/extrah...
Depends on:
Reported: 2022-05-15 09:12 UTC by Terry
Modified: 2022-05-15 12:37 UTC (History)
1 user (show)

See Also:

appendix obsolete (151.25 KB, image/jpeg)
2022-05-15 09:39 UTC, iptom

Note You need to log in before you can comment on or make changes to this bug.
Description Terry 2022-05-15 09:12:19 UTC
Can't remove entries in 'extrahd' via the webinterface.

Does not check entries for the right syntax, existing drive ID, existing mount point.

Comment 1 iptom 2022-05-15 09:39:16 UTC
Created attachment 1051 [details]
appendix obsolete
Comment 2 iptom 2022-05-15 09:40:40 UTC
I noticed that extrahd.pl is using /etc/fstab file but /etc/fstab is empty

Below are example lines:
Line 36:        my $fstab = "/var/ipfire/extrahd/fstab";
Line 52: 	system("/bin/cp -f /etc/fstab $fstab");
Line 58: 	print "Insert $deviceline[0] ($deviceline[1]) --> $deviceline[2] into /etc/fstab!\n";
Line 60: 	open(FILE, ">>$fstab");
Line 66: 	system("/bin/cp -f $fstab /etc/fstab");
Line 76: 	system("/bin/cp -f /etc/fstab $fstab");
Line 77: 	system("/bin/fgrep -v $ARGV[1] <$fstab >/etc/fstab");
Comment 3 iptom 2022-05-15 12:37:33 UTC
Please delete my comments - entered too early.