Bug 5765 - /etc/root.hconf missing, /opt/thinlinc/bin/hivetool doesn't work
Summary: /etc/root.hconf missing, /opt/thinlinc/bin/hivetool doesn't work
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: 4.5.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 12:41 CET by Karl Mikaelsson
Modified: 2022-04-26 08:10 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Karl Mikaelsson cendio 2016-01-04 12:41:31 CET
We document hivetool to be a generic tool that you can use to query system settings as well as ThinLinc settings, and it's conveniently placed in $PATH.

> $ which hivetool
> /opt/thinlinc/bin/hivetool

> $ rpm -qf /opt/thinlinc/bin/hivetool
> thinlinc-tlmisc-4.5.0-4919.x86_64

> $ hivetool -a /
> Traceback (most recent call last):
>   File "/opt/thinlinc/bin/hivetool", line 186, in <module>
>     main()
>   File "/opt/thinlinc/bin/hivetool", line 172, in main
>     folder = hive.lookup(foldername)
> AttributeError: 'NoneType' object has no attribute 'lookup'

> $ hivetool /
> Traceback (most recent call last):
>   File "/opt/thinlinc/bin/hivetool", line 186, in <module>
>     main()
>   File "/opt/thinlinc/bin/hivetool", line 168, in main
>     errors += handle_param(hive, param)
>   File "/opt/thinlinc/bin/hivetool", line 45, in handle_param
>     method = getattr(hive, "get_%s" % paramtype)
> AttributeError: 'NoneType' object has no attribute 'get_string'

strace:ing shows hivetool look for /etc/root.hconf:
> stat("/etc/root.hconf", 0x7ffe0df4ac60) = -1 ENOENT (No such file or directory)

tl-config still works because it tells hivetool to use another hiveconf file as root.

Note You need to log in before you can comment on or make changes to this bug.