bug#27146: system init: if /etc doesn't exist, create it

2017-08-02 Thread Ludovic Courtès
ng0  skribis:

> I had the unfortunate experience of remote fixing a system,
> and one way I tried to fix my original problem was to
> remove the /etc directory (this included the content of
> debian 8 with some alternative changes to the minimal
> one I did not set up myself).
> When I rebooted, this is still at activation of the first
> system generation, I get the repl because the symlink
> target does not exist (obviously).
>
> We should think of such situations, however uncommon they are,
> and check if /etc exists. If it doesn't exist create it
> otherwise it is assumed that it exists and for example
> this symlink creation will work: ssl -> /run/current-system/profile/etc/ssl

Indeed, fixed in 49962b15a1c4e72a55b6cf273806d203906de2ed.

Thanks,
Ludo’.





bug#27146: system init: if /etc doesn't exist, create it

2017-05-30 Thread ng0
I had the unfortunate experience of remote fixing a system,
and one way I tried to fix my original problem was to
remove the /etc directory (this included the content of
debian 8 with some alternative changes to the minimal
one I did not set up myself).
When I rebooted, this is still at activation of the first
system generation, I get the repl because the symlink
target does not exist (obviously).

We should think of such situations, however uncommon they are,
and check if /etc exists. If it doesn't exist create it
otherwise it is assumed that it exists and for example
this symlink creation will work: ssl -> /run/current-system/profile/etc/ssl

-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588


signature.asc
Description: PGP signature