> How were they doing alignment in a hangar to start with, were these roofless hangars?
I don't think so.
You can read more about alignment in page 7, paragraph 10A-23 and the following pages. It'd usually involve using test equipment and manually inputting the current coordinates (e.g. heading, position, altitude, date/time, ...) into the system, from what I understand.
Regardless, the paragraph I mentioned in my previous comment clearly instructs to enable ASTRO mode after the alignment is completed and the airplane is taxiing in the open. It also mentions that in ASTRO mode, the system can confuse the ceiling lights of the hangar for stars (hence why it needs to be disabled inside the hangar), which means that ASTRO mode does track stars on the ground.