Subject: Re: bug#29662: 'guix gc' as user makes system unbootable

From: Quiliro Ordonez Baca <[email-masked]>
Date: Mon, 11 Dec 2017 17:03:37 -0500

Ricardo Wurmus <[email-masked]> writes:

> Quiliro Ordonez Baca <[email-masked]> writes:
>
>>>> 'guix gc' as user makes system unbootable.-
> […]
>>> Did you remove anything under /var/guix/profiles/ before running “guix
>>> gc”?
>>
>> No.
>
> Could you please show us the output of this command:
>
>    ls -l /var/guix/profiles/system*

$ ls -l /var/guix/profiles/system*
/var/guix/profiles/system/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-1-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/h7q3qzkligi3yzr6f608qm4nqg0hb0nx-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/fhqips0dpzfmrhi52mpbixbgg239cjk4-etc
lrwxrwxrwx   5 root           root     61 1969-12-31  1969 initrd -> /gnu/store/ipsp49cpfqvjsv9agfy6in7ln2mpds4g-raw-initrd/initrd
lrwxrwxrwx   5 root           root     62 1969-12-31  1969 kernel -> /gnu/store/b7nk7glwlrjk8fnw4g7zylzlx7g2f6jd-linux-libre-4.11.6
lrwxrwxrwx   5 root           root     55 1969-12-31  1969 locale -> /gnu/store/zsnbsyibg6zy1p2a67aan5m39l40cxn3-locale-2.25
lrwxrwxrwx   5 root           root     54 1969-12-31  1969 parameters -> /gnu/store/6m68a1pcsdml3gk382p24nn1cfm7rdxg-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/qjxndmgyhznv688hk4ix45br46hqrkc9-profile

/var/guix/profiles/system-10-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-11-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-12-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-2-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/qhqv00a4j7nlnb9cfzrxkrvc7dnx01xn-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/0d2khbql3vjzjhkjv7aks2bm828nrqrf-etc
lrwxrwxrwx   5 root           root     61 1969-12-31  1969 initrd -> /gnu/store/ipsp49cpfqvjsv9agfy6in7ln2mpds4g-raw-initrd/initrd
lrwxrwxrwx   5 root           root     62 1969-12-31  1969 kernel -> /gnu/store/b7nk7glwlrjk8fnw4g7zylzlx7g2f6jd-linux-libre-4.11.6
lrwxrwxrwx   5 root           root     55 1969-12-31  1969 locale -> /gnu/store/zsnbsyibg6zy1p2a67aan5m39l40cxn3-locale-2.25
lrwxrwxrwx   5 root           root     54 1969-12-31  1969 parameters -> /gnu/store/6m68a1pcsdml3gk382p24nn1cfm7rdxg-parameters
lrwxrwxrwx   4 root           root     51 1969-12-31  1969 profile -> /gnu/store/hzx8dja4yxdfhy8vjkdi6zhf8c32xv6m-profile

/var/guix/profiles/system-3-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/w6wpsamiyb5v29hdh8xcirhahbdzybm3-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/24gmls6wkj7bjnfv36rcrs6nbjq6ic2n-etc
lrwxrwxrwx   5 root           root     61 1969-12-31  1969 initrd -> /gnu/store/ipsp49cpfqvjsv9agfy6in7ln2mpds4g-raw-initrd/initrd
lrwxrwxrwx   5 root           root     62 1969-12-31  1969 kernel -> /gnu/store/b7nk7glwlrjk8fnw4g7zylzlx7g2f6jd-linux-libre-4.11.6
lrwxrwxrwx   5 root           root     55 1969-12-31  1969 locale -> /gnu/store/zsnbsyibg6zy1p2a67aan5m39l40cxn3-locale-2.25
lrwxrwxrwx   5 root           root     54 1969-12-31  1969 parameters -> /gnu/store/6m68a1pcsdml3gk382p24nn1cfm7rdxg-parameters
lrwxrwxrwx   4 root           root     51 1969-12-31  1969 profile -> /gnu/store/hzx8dja4yxdfhy8vjkdi6zhf8c32xv6m-profile

/var/guix/profiles/system-4-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/wliv1xly5l3g30pgx1xqh53vxdvxj5z3-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/z01wfcs12sjs7id9zf7pfdkf8djj52cz-etc
lrwxrwxrwx   5 root           root     61 1969-12-31  1969 initrd -> /gnu/store/ipsp49cpfqvjsv9agfy6in7ln2mpds4g-raw-initrd/initrd
lrwxrwxrwx   5 root           root     62 1969-12-31  1969 kernel -> /gnu/store/b7nk7glwlrjk8fnw4g7zylzlx7g2f6jd-linux-libre-4.11.6
lrwxrwxrwx   5 root           root     55 1969-12-31  1969 locale -> /gnu/store/zsnbsyibg6zy1p2a67aan5m39l40cxn3-locale-2.25
lrwxrwxrwx   5 root           root     54 1969-12-31  1969 parameters -> /gnu/store/6m68a1pcsdml3gk382p24nn1cfm7rdxg-parameters
lrwxrwxrwx   4 root           root     51 1969-12-31  1969 profile -> /gnu/store/hzx8dja4yxdfhy8vjkdi6zhf8c32xv6m-profile

/var/guix/profiles/system-5-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/6zm24gxvckgzwh4ky3gamc04rvm0zx0d-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/bggr6npcrk6yinv09lh7cq2501qkdd6x-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/hqkrr67kc7lfiwyswnb2cg3m83c9wxm4-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/551if3nndg012wwh761dyvd9208mq8kd-linux-libre-4.11.8
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/3g7jsbbs2kr3gyb4jck7mfv7yxv7125y-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/l2fvv32z5vjc9n0kqf6dcbv92qfj2x8c-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/ms57rpcv0dy39vaw4w966ji06ynyc2k2-profile

/var/guix/profiles/system-6-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/gkacl550askh7svdcaknyp0b9v3b0z76-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/wvjlr4d56hink40jarsbgc0vscdg3a8w-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/6d0k9nh53zsgj7x8sn46g10blcgjvpzg-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/6i82m8zg5yvv387bp52jlvj9q5llfshs-linux-libre-4.12.2
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/ffsngmi8kn77kyqqjpllkj87ms6vvpvv-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/b4b9xz7qv2x2d6fz13pqz7m6yjrny57f-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/v7b1vhj3jd4qd8sj67wilfg3h4fdgy5s-profile

/var/guix/profiles/system-7-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-8-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

/var/guix/profiles/system-9-link/:
total 0
lrwxrwxrwx   2 root           root     48 1969-12-31  1969 boot -> /gnu/store/f9yk9y09kks21lk56jr8c7i07nycv6zg-boot
lrwxrwxrwx   2 root           root     47 1969-12-31  1969 etc -> /gnu/store/6g2za5dba5p688423147gkb9q4s1l538-etc
lrwxrwxrwx   2 root           root     61 1969-12-31  1969 initrd -> /gnu/store/a0dxcwihws6sffrn7smmldz09cjd071j-raw-initrd/initrd
lrwxrwxrwx   2 root           root     62 1969-12-31  1969 kernel -> /gnu/store/p4jnlykw8p2dkz1rjqsmg7wa85knwck3-linux-libre-4.12.9
lrwxrwxrwx   2 root           root     55 1969-12-31  1969 locale -> /gnu/store/y5phy1j9l97jkjggmvm0wfxcyx6gkimf-locale-2.25
lrwxrwxrwx   2 root           root     54 1969-12-31  1969 parameters -> /gnu/store/0hjj9j0w31csv6kx7j1wb5mzxrjsygip-parameters
lrwxrwxrwx   2 root           root     51 1969-12-31  1969 profile -> /gnu/store/9j61gdvib05abn1h9hvn6bwzqlcyfmsw-profile

> Has the disk label changed?

No:

$ lsblk 
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  113G  0 disk 
├─sda1   8:1    0  500M  0 part /boot/efi
├─sda2   8:2    0  109G  0 part /
└─sda3   8:3    0  3,5G  0 part [SWAP]