* bug#29662: 'guix gc' as user makes system unbootable @ 2017-12-11 17:21 Quiliro Ordonez Baca 2017-12-11 21:14 ` Ricardo Wurmus 2017-12-17 22:23 ` Martin Castillo 0 siblings, 2 replies; 14+ messages in thread From: Quiliro Ordonez Baca @ 2017-12-11 17:21 UTC (permalink / raw) To: 29662 'guix gc' as user makes system unbootable.- I had executed 'guix gc' and then 'guix package -i blender' and then 'guix package -u', all as user without running 'guix pull' recently (did it last week). When rebooting, current GrUB boot menu entry did not work. But previous versions (#1,#2,#3) worked at different levels. Below each menu entry I post my experience upon boting with it: menuentry "GNU with Linux-Libre 4.12.9 (beta)" Kernel panic menuentry "GNU with Linux-Libre 4.11.6 (beta) (#1, 2017-06-21 18:01)" No GUI. Lost keyboad configuration on tty's. Logged in as user. The output of 'sudo herd status' was 'error: connect: /var/run/shepherd/socket: No existe el fichero o el directorio'. menuentry "GNU with Linux-Libre 4.11.6 (beta) (#2, 2017-06-22 15:49)" Working GUI (no local keyboard as usual) and working Herd. Lost keyboad configuration on tty's. menuentry "GNU with Linux-Libre 4.11.6 (beta) (#3, 2017-06-30 13:36)" Working GUI (no local keyboard as usual) and working Herd. Lost keyboad configuration on tty's. menuentry "GNU with Linux-Libre 4.11.6 (beta) (#4, 2017-06-30 14:57)" Kernel panic menuentry "GNU with Linux-Libre 4.11.8 (beta) (#5, 2017-07-02 19:30)" Kernel panic menuentry "GNU with Linux-Libre 4.12.2 (beta) (#6, 2017-07-16 09:38)" Kernel panic menuentry "GNU with Linux-Libre 4.12.9 (beta) (#7, 2017-08-31 00:10)" Kernel panic menuentry "GNU with Linux-Libre 4.12.9 (beta) (#8, 2017-08-31 00:19)" Kernel panic menuentry "GNU with Linux-Libre 4.12.9 (beta) (#9, 2017-08-31 00:46)" Kernel panic menuentry "GNU with Linux-Libre 4.12.9 (beta) (#10, 2017-08-31 06:15)" Kernel panic menuentry "GNU with Linux-Libre 4.12.9 (beta) (#11, 2017-09-02 15:48)" Kernel panic This situation has happened before and has, as in this time, made my installation unbootable. But I did not notice that it was because of 'guix gc', until now. Is it normal that a user can affect the boot process for the whole operating system? ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 17:21 bug#29662: 'guix gc' as user makes system unbootable Quiliro Ordonez Baca @ 2017-12-11 21:14 ` Ricardo Wurmus 2017-12-11 21:26 ` Quiliro Ordonez Baca 2017-12-17 22:23 ` Martin Castillo 1 sibling, 1 reply; 14+ messages in thread From: Ricardo Wurmus @ 2017-12-11 21:14 UTC (permalink / raw) To: Quiliro Ordonez Baca; +Cc: 29662 Hi Quiliro, > 'guix gc' as user makes system unbootable.- > > I had executed 'guix gc' and then 'guix package -i blender' and then > 'guix package -u', all as user without running 'guix pull' recently > (did it last week). When rebooting, current GrUB boot menu entry did > not work. But previous versions (#1,#2,#3) worked at different > levels. Below each menu entry I post my experience upon boting with > it: Did you remove anything under /var/guix/profiles/ before running “guix gc”? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 21:14 ` Ricardo Wurmus @ 2017-12-11 21:26 ` Quiliro Ordonez Baca 2017-12-11 21:40 ` Ricardo Wurmus 2017-12-21 21:06 ` Quiliro Ordonez Baca 0 siblings, 2 replies; 14+ messages in thread From: Quiliro Ordonez Baca @ 2017-12-11 21:26 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 29662 Ricardo Wurmus <rekado@elephly.net> writes: > Hi Quiliro, > >> 'guix gc' as user makes system unbootable.- >> >> I had executed 'guix gc' and then 'guix package -i blender' and then >> 'guix package -u', all as user without running 'guix pull' recently >> (did it last week). When rebooting, current GrUB boot menu entry did >> not work. But previous versions (#1,#2,#3) worked at different >> levels. Below each menu entry I post my experience upon boting with >> it: > > Did you remove anything under /var/guix/profiles/ before running “guix > gc”? No. $ guix --version guix (GNU Guix) 12746aa9b8ab50c75f6546b9858b9c7686c7e960 ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 21:26 ` Quiliro Ordonez Baca @ 2017-12-11 21:40 ` Ricardo Wurmus 2017-12-11 22:03 ` Quiliro Ordonez Baca 2017-12-21 21:06 ` Quiliro Ordonez Baca 1 sibling, 1 reply; 14+ messages in thread From: Ricardo Wurmus @ 2017-12-11 21:40 UTC (permalink / raw) To: Quiliro Ordonez Baca; +Cc: 29662 Quiliro Ordonez Baca <quiliro@riseup.net> 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* Has the disk label changed? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 21:40 ` Ricardo Wurmus @ 2017-12-11 22:03 ` Quiliro Ordonez Baca 2017-12-20 14:49 ` Ricardo Wurmus 0 siblings, 1 reply; 14+ messages in thread From: Quiliro Ordonez Baca @ 2017-12-11 22:03 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 29662 Ricardo Wurmus <rekado@elephly.net> writes: > Quiliro Ordonez Baca <quiliro@riseup.net> 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] ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 22:03 ` Quiliro Ordonez Baca @ 2017-12-20 14:49 ` Ricardo Wurmus 0 siblings, 0 replies; 14+ messages in thread From: Ricardo Wurmus @ 2017-12-20 14:49 UTC (permalink / raw) To: Quiliro Ordonez Baca; +Cc: 29662 Quiliro Ordonez Baca <quiliro@riseup.net> writes: > Ricardo Wurmus <rekado@elephly.net> writes: > >> Quiliro Ordonez Baca <quiliro@riseup.net> 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* Okay, this shows us that the system generations are all still there. It would help to know what exact error you get when the system fails to boot. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 21:26 ` Quiliro Ordonez Baca 2017-12-11 21:40 ` Ricardo Wurmus @ 2017-12-21 21:06 ` Quiliro Ordonez Baca 1 sibling, 0 replies; 14+ messages in thread From: Quiliro Ordonez Baca @ 2017-12-21 21:06 UTC (permalink / raw) To: 29662 From another thread that I mistakenly reopened: Hi Ludovic. >> 'guix gc' as user makes system unbootable.- > > If it were the case, we’d all be in troubles. :-) That is very true. But it is strange that it happens to me always when running 'guix gc'. Perhaps the previous times I had this problem was with root. But this time I have not touched root. > More seriously, you experienced problems, but it’s not clear yet that > this can be attributed to ‘guix gc’. To me this sounds very unlikely. Yes. It is weird. Nevertheless, it happens; that is undeniable. I can send all info you ask. I feel weird.... >> I had executed 'guix gc' and then 'guix package -i blender' and then >> 'guix package -u', all as user without running 'guix pull' recently >> (did it last week). When rebooting, current GrUB boot menu entry did >> not work. But previous versions (#1,#2,#3) worked at different >> levels. Below each menu entry I post my experience upon boting with >> it: >> >> menuentry "GNU with Linux-Libre 4.12.9 (beta)" >> Kernel panic > > Could you paste (or take a picture) what’s on the screen? Without this > we can’t draw any conclusions. I attach one photo. There are different messages. But, wouldn't it be rude to attach 6MB to the whole mailing list? [2. image/jpeg; DSCN3298.JPG]... >> menuentry "GNU with Linux-Libre 4.11.6 (beta) (#1, 2017-06-21 18:01)" >> No GUI. Lost keyboad configuration on tty's. Logged in as user. The >> output of 'sudo herd status' was 'error: connect: >> /var/run/shepherd/socket: No existe el fichero o el directorio'. > > Sounds like the root file system is missing files. > > Can you send the content of /var/log/shepherd.log and the last ~100 > lines of /var/log/messages for that config? /var/log/shepherd.log: 2017-12-19 20:40:53 Service console-font-tty2 has been started. 2017-12-19 20:40:53 Service console-font-tty3 has been started. 2017-12-19 20:40:53 Service console-font-tty4 has been started. 2017-12-19 20:40:53 Service console-font-tty5 has been started. 2017-12-19 20:40:53 Service console-font-tty6 has been started. 2017-12-19 20:40:55 Service dbus-system has been started. 2017-12-19 20:40:55 Service networking has been started. 2017-12-19 20:40:55 Service ntpd has been started. 2017-12-19 20:40:55 Service upower-daemon has been started. 2017-12-19 20:40:56 Service avahi-daemon has been started. 2017-12-19 20:40:56 Service xorg-server has been started. 2017-12-19 20:41:06 Exiting shepherd... 2017-12-19 20:41:06 Service urandom-seed has been stopped. 2017-12-19 20:41:06 Service console-font-tty2 has been stopped. 2017-12-19 20:41:06 Service term-tty2 has been stopped. 2017-12-19 20:41:06 Service console-font-tty6 has been stopped. 2017-12-19 20:41:06 Service term-tty6 has been stopped. 2017-12-19 20:41:06 Service guix-daemon has been stopped. 2017-12-19 20:41:06 Service console-font-tty3 has been stopped. 2017-12-19 20:41:06 Service term-tty3 has been stopped. 2017-12-19 20:41:06 Service xorg-server has been stopped. 2017-12-19 20:41:06 Service upower-daemon has been stopped. 2017-12-19 20:41:06 Service avahi-daemon has been stopped. 2017-12-19 20:41:06 Service ntpd has been stopped. 2017-12-19 20:41:06 Service networking has been stopped. 2017-12-19 20:41:06 Service dbus-system has been stopped. 2017-12-19 20:41:06 Service nscd has been stopped. 2017-12-19 20:41:06 Service console-font-tty4 has been stopped. 2017-12-19 20:41:06 Service term-tty4 has been stopped. 2017-12-19 20:41:06 Service syslogd has been stopped. 2017-12-19 20:41:06 Service console-font-tty1 has been stopped. 2017-12-19 20:41:06 Service term-tty1 has been stopped. 2017-12-19 20:41:06 Service console-font-tty5 has been stopped. 2017-12-19 20:41:06 Service term-tty5 has been stopped. 2017-12-19 20:41:06 sending all processes the TERM signal 2017-12-19 20:41:10 all processes have been terminated 2017-12-19 20:41:10 Service user-processes has been stopped. 2017-12-19 20:41:10 Service file-systems has been stopped. 2017-12-19 20:41:10 Service file-system-/gnu/store has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/freezer has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/cpu has been stopped. 2017-12-19 20:41:10 Service file-system-/run/systemd has been stopped. 2017-12-19 20:41:10 Service file-system-/dev/shm has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/devices has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/cpuset has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/hugetlb has been stopped. 2017-12-19 20:41:10 Service file-system-/dev/pts has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/memory has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/elogind has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/blkio has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/perf_event has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup/cpuacct has been stopped. 2017-12-19 20:41:10 Service file-system-/sys/fs/cgroup has been stopped. 2017-12-19 20:41:10 Service file-system-/boot/efi has been stopped. 2017-12-19 20:41:10 Service file-system-/run/user has been stopped. 2017-12-19 20:41:10 Service udev has been stopped. 2017-12-19 20:41:10 closing log 2017-12-19 20:41:36 Service root has been started. 2017-12-19 20:41:37 starting services... 2017-12-19 20:41:37 Service root-file-system has been started. 2017-12-19 20:41:37 Service user-file-systems has been started. 2017-12-19 20:41:37 warning: 'waitpid' -1 failed unexpectedly: No child processes 2017-12-19 20:41:37 Service file-system-/boot/efi has been started. 2017-12-19 20:41:37 Service file-system-/dev/pts has been started. 2017-12-19 20:41:37 Service file-system-/dev/shm has been started. 2017-12-19 20:41:37 Service file-system-/gnu/store has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/cpuset has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/cpu has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/cpuacct has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/memory has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/devices has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/freezer has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/blkio has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/perf_event has been started. 2017-12-19 20:41:37 Service file-system-/sys/fs/cgroup/hugetlb has been started. 2017-12-19 20:41:37 Service file-systems has been started. 2017-12-19 20:41:37 Service user-processes has been started. 2017-12-19 20:41:37 Service host-name has been started. 2017-12-19 20:41:37 Service user-homes could not be started. 2017-12-19 20:41:37 waiting for udevd... 2017-12-19 20:41:38 Service udev has been started. 2017-12-19 20:41:39 Service nscd has been started. 2017-12-19 20:41:39 Service guix-daemon has been started. 2017-12-19 20:41:39 Service urandom-seed has been started. 2017-12-19 20:41:39 Service syslogd has been started. 2017-12-19 20:41:39 Service loopback has been started. 2017-12-19 20:41:39 Service term-tty6 has been started. 2017-12-19 20:41:39 Service term-tty5 has been started. 2017-12-19 20:41:39 Service term-tty4 has been started. 2017-12-19 20:41:39 Service term-tty3 has been started. 2017-12-19 20:41:39 Service term-tty2 has been started. 2017-12-19 20:41:39 Service term-tty1 has been started. 2017-12-19 20:41:39 Service console-font-tty1 has been started. 2017-12-19 20:41:39 Service console-font-tty2 has been started. 2017-12-19 20:41:39 Service console-font-tty3 has been started. 2017-12-19 20:41:39 Service console-font-tty4 has been started. 2017-12-19 20:41:39 Service console-font-tty5 has been started. 2017-12-19 20:41:39 Service console-font-tty6 has been started. 2017-12-19 20:41:44 Service ssh-daemon could not be started. /var/log/messages: Dec 19 20:41:45 localhost vmunix: [ 3.002898] input: Apple Inc. Apple Internal Keyboard / Trackpad as /devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.0/0003:05AC:0224.0004/input/input6 Dec 19 20:41:45 localhost vmunix: [ 3.061380] apple 0003:05AC:0224.0004: input,hidraw2: USB HID v1.11 Keyboard [Apple Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:04.0-6/input0 Dec 19 20:41:45 localhost vmunix: [ 3.146355] udevd[195]: starting version 3.2.1 Dec 19 20:41:45 localhost vmunix: [ 3.168137] udevd[195]: starting eudev-3.2.1 Dec 19 20:41:45 localhost vmunix: [ 3.504389] apple 0003:05AC:0224.0005: hidraw3: USB HID v1.11 Device [Apple Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:04.0-6/input1 Dec 19 20:41:45 localhost vmunix: [ 3.513642] input: bcm5974 as /devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.2/input/input7 Dec 19 20:41:45 localhost vmunix: [ 3.514739] usbcore: registered new interface driver bcm5974 Dec 19 20:41:45 localhost vmunix: [ 3.517739] usbcore: registered new interface driver usbmouse Dec 19 20:41:45 localhost vmunix: [ 3.611032] udevd[195]: no sender credentials received, message ignored Dec 19 20:41:45 localhost vmunix: [ 3.644244] i2c i2c-0: nForce2 SMBus adapter at 0x2140 Dec 19 20:41:45 localhost vmunix: [ 3.646647] i2c i2c-1: nForce2 SMBus adapter at 0x2100 Dec 19 20:41:45 localhost vmunix: [ 3.654140] nv_tco: NV TCO WatchDog Timer Driver v0.01 Dec 19 20:41:45 localhost vmunix: [ 3.655086] nv_tco: Watchdog reboot detected Dec 19 20:41:45 localhost vmunix: [ 3.661465] nv_tco: initialized (0x0540). heartbeat=30 sec (nowayout=0) Dec 19 20:41:45 localhost vmunix: [ 3.663976] ACPI: SBS HC: EC = 0xffff98973dc40100, offset = 0x20, query_bit = 0x10 Dec 19 20:41:45 localhost vmunix: [ 3.681729] usbcore: registered new interface driver usbkbd Dec 19 20:41:45 localhost vmunix: [ 3.683072] media: Linux media interface: v0.10 Dec 19 20:41:45 localhost vmunix: [ 3.686680] input: Apple Computer, Inc. IR Receiver as /devices/pci0000:00/0000:00:04.0/usb3/3-5/3-5:1.0/0003:05AC:8242.0001/input/input8 Dec 19 20:41:45 localhost vmunix: [ 3.688163] Bluetooth: Core ver 2.22 Dec 19 20:41:45 localhost vmunix: [ 3.689129] NET: Registered protocol family 31 Dec 19 20:41:45 localhost vmunix: [ 3.690041] Bluetooth: HCI device and connection manager initialized Dec 19 20:41:45 localhost vmunix: [ 3.690970] Bluetooth: HCI socket layer initialized Dec 19 20:41:45 localhost vmunix: [ 3.691822] Bluetooth: L2CAP socket layer initialized Dec 19 20:41:45 localhost vmunix: [ 3.692624] Bluetooth: SCO socket layer initialized Dec 19 20:41:45 localhost vmunix: [ 3.694900] Linux video capture interface: v2.00 Dec 19 20:41:45 localhost vmunix: [ 3.697822] usbcore: registered new interface driver btusb Dec 19 20:41:45 localhost vmunix: [ 3.713718] uvcvideo: Found UVC 1.00 device Built-in iSight (05ac:8505) Dec 19 20:41:45 localhost vmunix: [ 3.719378] uvcvideo 1-4:1.0: Entity type for entity Processing 3 was not initialized! Dec 19 20:41:45 localhost vmunix: [ 3.719491] snd_hda_intel 0000:00:08.0: enabling device (0000 -> 0002) Dec 19 20:41:45 localhost vmunix: [ 3.719814] ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 18 Dec 19 20:41:45 localhost vmunix: [ 3.719823] snd_hda_intel 0000:00:08.0: Disabling MSI Dec 19 20:41:45 localhost vmunix: [ 3.724299] uvcvideo 1-4:1.0: Entity type for entity Camera 1 was not initialized! Dec 19 20:41:45 localhost vmunix: [ 3.726596] input: Built-in iSight as /devices/pci0000:00/0000:00:04.1/usb1/1-4/1-4:1.0/input/input9 Dec 19 20:41:45 localhost vmunix: [ 3.728111] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 Dec 19 20:41:45 localhost vmunix: [ 3.730303] usb 4-1.2: USB disconnect, device number 4 Dec 19 20:41:45 localhost vmunix: [ 3.732763] input: PC Speaker as /devices/platform/pcspkr/input/input10 Dec 19 20:41:45 localhost vmunix: [ 3.750151] appleir 0003:05AC:8242.0001: input,hiddev0,hidraw4: USB HID v1.11 Device [Apple Computer, Inc. IR Receiver] on usb-0000:00:04.0-5/input0 Dec 19 20:41:45 localhost vmunix: [ 3.765878] usbcore: registered new interface driver uvcvideo Dec 19 20:41:45 localhost vmunix: [ 3.766974] USB Video Class driver (1.1.1) Dec 19 20:41:45 localhost vmunix: [ 3.770883] wmi: Mapper loaded Dec 19 20:41:45 localhost vmunix: [ 3.781570] ssb: Found chip with id 0x4321, rev 0x05 and package 0x00 Dec 19 20:41:45 localhost vmunix: [ 3.797307] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). Dec 19 20:41:45 localhost vmunix: [ 3.798440] ACPI: Smart Battery System [SBS0]: Battery Slot [BAT0] (battery present) Dec 19 20:41:46 localhost vmunix: [ 3.815279] intel_powerclamp: No package C-state available Dec 19 20:41:46 localhost vmunix: [ 3.850612] ssb: Sonics Silicon Backplane found on PCI device 0000:03:00.0 Dec 19 20:41:46 localhost vmunix: [ 3.854711] ACPI Warning: \_SB.PCI0.IXVE.IGPU._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170119/nsarguments-95) Dec 19 20:41:46 localhost vmunix: [ 3.856613] Error: Driver 'pcspkr' is already registered, aborting... Dec 19 20:41:46 localhost vmunix: [ 3.864198] ACPI: \_SB_.PCI0.IXVE.IGPU: failed to evaluate _DSM Dec 19 20:41:46 localhost vmunix: [ 3.865750] nouveau 0000:02:00.0: enabling device (0002 -> 0003) Dec 19 20:41:46 localhost vmunix: [ 3.867456] ACPI: PCI Interrupt Link [LGPU] enabled at IRQ 20 Dec 19 20:41:46 localhost vmunix: [ 3.875366] fb: switching to nouveaufb from EFI VGA Dec 19 20:41:46 localhost vmunix: [ 3.881496] Console: switching to colour dummy device 80x25 Dec 19 20:41:46 localhost vmunix: [ 3.885794] nouveau 0000:02:00.0: NVIDIA MCP79/MCP7A (0ac800b1) Dec 19 20:41:46 localhost vmunix: [ 3.901772] nouveau 0000:02:00.0: bios: version 62.79.47.00.01 Dec 19 20:41:46 localhost vmunix: [ 3.902427] nouveau 0000:02:00.0: disp: outp 02:0006:0242: no bios dp data Dec 19 20:41:46 localhost vmunix: [ 3.931822] nouveau 0000:02:00.0: fb: 256 MiB stolen system memory Dec 19 20:41:46 localhost vmunix: [ 3.955535] b43-phy0: Broadcom 4321 WLAN found (core revision 12) Dec 19 20:41:46 localhost vmunix: [ 3.991293] [TTM] Zone kernel: Available graphics memory: 893412 kiB Dec 19 20:41:46 localhost vmunix: [ 3.991300] [TTM] Initializing pool allocator Dec 19 20:41:46 localhost vmunix: [ 3.991309] [TTM] Initializing DMA pool allocator Dec 19 20:41:46 localhost vmunix: [ 3.991337] nouveau 0000:02:00.0: DRM: VRAM: 256 MiB Dec 19 20:41:46 localhost vmunix: [ 3.991343] nouveau 0000:02:00.0: DRM: GART: 1048576 MiB Dec 19 20:41:46 localhost vmunix: [ 3.991351] nouveau 0000:02:00.0: DRM: TMDS table version 2.0 Dec 19 20:41:46 localhost vmunix: [ 3.991357] nouveau 0000:02:00.0: DRM: DCB version 4.0 Dec 19 20:41:46 localhost vmunix: [ 3.991363] nouveau 0000:02:00.0: DRM: DCB outp 00: 01001123 00010014 Dec 19 20:41:46 localhost vmunix: [ 3.991370] nouveau 0000:02:00.0: DRM: DCB outp 01: 02020232 00000010 Dec 19 20:41:46 localhost vmunix: [ 3.991375] nouveau 0000:02:00.0: DRM: DCB outp 02: 02020286 0f220010 Dec 19 20:41:46 localhost vmunix: [ 3.991381] nouveau 0000:02:00.0: DRM: DCB conn 00: 0000a146 Dec 19 20:41:46 localhost vmunix: [ 3.991386] nouveau 0000:02:00.0: DRM: DCB conn 01: 00000240 Dec 19 20:41:46 localhost vmunix: [ 3.998159] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Dec 19 20:41:46 localhost vmunix: [ 3.998165] [drm] Driver supports precise vblank timestamp query. Dec 19 20:41:46 localhost vmunix: [ 3.998278] nouveau 0000:02:00.0: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). Dec 19 20:41:46 localhost vmunix: [ 4.009059] nouveau 0000:02:00.0: DRM: MM: using M2MF for buffer copies Dec 19 20:41:46 localhost vmunix: [ 4.010141] b43-phy0: Found PHY: Analog 5, Type 4 (N), Revision 2 Dec 19 20:41:46 localhost vmunix: [ 4.010154] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2055, Revision 4, Version 0 Dec 19 20:41:46 localhost vmunix: [ 4.057652] applesmc: key=272 fan=1 temp=17 index=17 acc=1 lux=2 kbd=1 Dec 19 20:41:46 localhost vmunix: [ 4.059676] ssb0:0: Missing Free firmware (non-Free firmware loading is disabled) Dec 19 20:41:46 localhost vmunix: [ 4.059685] Unable to load firmware Dec 19 20:41:46 localhost vmunix: [ 4.059691] ssb0:0: Missing Free firmware (non-Free firmware loading is disabled) Dec 19 20:41:46 localhost vmunix: [ 4.059698] Unable to load firmware Dec 19 20:41:46 localhost vmunix: [ 4.059702] b43-phy0 ERROR: /*(DEBLOBBED)*/ Dec 19 20:41:46 localhost vmunix: [ 4.059774] Broadcom 43xx driver loaded [ Features: PNL ] Dec 19 20:41:46 localhost vmunix: [ 4.060515] b43 ssb0:0: Direct firmware load for /*(DEBLOBBED)*/ failed with error -2 Dec 19 20:41:46 localhost vmunix: [ 4.081278] usb 4-1.3: USB disconnect, device number 5 Dec 19 20:41:46 localhost vmunix: [ 4.097693] nouveau 0000:02:00.0: DRM: allocated 1280x800 fb: 0x50000, bo ffff989738893000 Dec 19 20:41:46 localhost vmunix: [ 4.105288] fbcon: nouveaufb (fb0) is primary device Dec 19 20:41:46 localhost vmunix: [ 4.137910] input: applesmc as /devices/platform/applesmc.768/input/input11 Dec 19 20:41:46 localhost vmunix: [ 4.176006] applesmc applesmc.768: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). Dec 19 20:41:46 localhost vmunix: [ 4.217596] Console: switching to colour frame buffer device 160x50 Dec 19 20:41:46 localhost vmunix: [ 4.351352] nouveau 0000:02:00.0: fb0: nouveaufb frame buffer device Dec 19 20:41:46 localhost vmunix: [ 4.365295] [drm] Initialized nouveau 1.3.1 20120801 for 0000:02:00.0 on minor 0 Dec 19 20:41:46 localhost vmunix: [ 4.628734] snd_hda_codec_realtek hdaudioC0D0: ALC889A: SKU not ready 0x400000f0 Dec 19 20:41:46 localhost vmunix: [ 4.653265] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC889A: line_outs=1 (0x18/0x0/0x0/0x0/0x0) type:speaker Dec 19 20:41:46 localhost vmunix: [ 4.653284] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) Dec 19 20:41:46 localhost vmunix: [ 4.653294] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x14/0x0/0x0/0x0/0x0) Dec 19 20:41:46 localhost vmunix: [ 4.653302] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0 Dec 19 20:41:46 localhost vmunix: [ 4.653309] snd_hda_codec_realtek hdaudioC0D0: inputs: Dec 19 20:41:46 localhost vmunix: [ 6.410296] input: HDA NVidia Headphone Mic as /devices/pci0000:00/0000:00:08.0/sound/card0/input12 Dec 19 20:41:48 localhost vmunix: [ 14.040286] random: crng init done Dec 19 20:42:46 localhost vmunix: [ 72.049278] CE: hpet increased min_delta_ns to 11521 nsec > Could it be that the root file system UUID or label in your GuixSD > config file is invalid? Current ‘guix system reconfigure’ raises an > error when that happens, but it used to be (until a month or two ago) > that ‘guix system reconfigure’ would go ahead and the resulting system > would not boot. Likewise, if you changed the label of the root file > system with ‘e2label’ in the meantime, the resulting system will not > boot. I checked all .scm files used for 'guix system reconfigure config.scm'. All have the 'my-root' label for root partition. e2label shows root partition (/dev/sda2) has 'my-root' label. I did not touch config.scm or have run 'sudo guix system reconfigure config.scm' in months (as you can probably see from the kernel I am using). This problem is recent and presented only after running 'guix gc' as a non-root user. I understand you doubt that this happens because guix is not supposed to do it. I know I could have missed something, but I doubt it. Please give me the benefit of the doubt. It is important for me to confirm that guix does not have this bug. I can try to reproduce the problem with another installation. > Thanks in advance, Thank YOU for your help! ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-11 17:21 bug#29662: 'guix gc' as user makes system unbootable Quiliro Ordonez Baca 2017-12-11 21:14 ` Ricardo Wurmus @ 2017-12-17 22:23 ` Martin Castillo 2017-12-18 9:54 ` Ludovic Courtès 1 sibling, 1 reply; 14+ messages in thread From: Martin Castillo @ 2017-12-17 22:23 UTC (permalink / raw) To: 29662 I had a similar situation today. guix gc removed the grub background png from the store. the one, that was used by /boot/grub/grub.cfg. the boot menu then had a black and blue background. rebuilding the configuration refetched the background image, but guix gc removed it again. after rebooting and reconfiguring a few times 'fixed' it. I will report back, if I should be able to reproduce. -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-17 22:23 ` Martin Castillo @ 2017-12-18 9:54 ` Ludovic Courtès 2017-12-18 14:18 ` Martin Castillo 0 siblings, 1 reply; 14+ messages in thread From: Ludovic Courtès @ 2017-12-18 9:54 UTC (permalink / raw) To: Martin Castillo; +Cc: 29662 Hi Martin, Martin Castillo <castilma@uni-bremen.de> skribis: > I had a similar situation today. guix gc removed the grub background png > from the store. the one, that was used by /boot/grub/grub.cfg. the boot > menu then had a black and blue background. rebuilding the configuration > refetched the background image, but guix gc removed it again. Normally the current ‘grub.cfg’ is a GC root, which prevents the background image and other items from being deleted: --8<---------------cut here---------------start------------->8--- $ ls -l /var/guix/gcroots/bootcfg lrwxrwxrwx 1 root root 52 Dec 7 23:21 /var/guix/gcroots/bootcfg -> /gnu/store/2bnr3z8q0rpvdc9zrshhyq4znx7jpzq6-grub.cfg $ guix gc --references /var/guix/gcroots/bootcfg /gnu/store/i3l4cv1mz30l4jafbghmbgmafc0xb38h-grub-image.png /gnu/store/j5x3dfappv9fdp7h46kgm8wxjbcqv5r6-system /gnu/store/qkhhqqkr0lkczwqwbp95gx4s8v0pjj41-raw-initrd /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02 /gnu/store/zi4awdcvrlj0fp74yb0y4ngah4qmcri0-linux-libre-4.14.4 $ sudo diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg $ echo $? 0 --8<---------------cut here---------------end--------------->8--- Could you check if this is the case on your machine? Thanks, Ludo’. ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-18 9:54 ` Ludovic Courtès @ 2017-12-18 14:18 ` Martin Castillo 2017-12-18 14:31 ` Ludovic Courtès 0 siblings, 1 reply; 14+ messages in thread From: Martin Castillo @ 2017-12-18 14:18 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 29662 Hi, On 18.12.2017 10:54, Ludovic Courtès wrote: > Hi Martin, > > Martin Castillo <castilma@uni-bremen.de> skribis: > >> I had a similar situation today. guix gc removed the grub background png >> from the store. the one, that was used by /boot/grub/grub.cfg. the boot >> menu then had a black and blue background. rebuilding the configuration >> refetched the background image, but guix gc removed it again. > > Normally the current ‘grub.cfg’ is a GC root, which prevents the > background image and other items from being deleted: > > --8<---------------cut here---------------start------------->8--- > $ ls -l /var/guix/gcroots/bootcfg > lrwxrwxrwx 1 root root 52 Dec 7 23:21 /var/guix/gcroots/bootcfg -> /gnu/store/2bnr3z8q0rpvdc9zrshhyq4znx7jpzq6-grub.cfg > $ guix gc --references /var/guix/gcroots/bootcfg > /gnu/store/i3l4cv1mz30l4jafbghmbgmafc0xb38h-grub-image.png > /gnu/store/j5x3dfappv9fdp7h46kgm8wxjbcqv5r6-system > /gnu/store/qkhhqqkr0lkczwqwbp95gx4s8v0pjj41-raw-initrd > /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02 > /gnu/store/zi4awdcvrlj0fp74yb0y4ngah4qmcri0-linux-libre-4.14.4 > $ sudo diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg > $ echo $? > 0 > --8<---------------cut here---------------end--------------->8--- > > Could you check if this is the case on your machine? > > Thanks, > Ludo’. Like I said, I cannot reproduce currently. guix gc --list-dead doesn't mention grub files anymore. below you see what I wrote while doing stuff. it starts with a missing bootcfg, then doing stuff and at '--- end' I start again with a bootcfg. --- start missing bootcfg $ ls /var/guix/gcroots auto/ booted-system current-system profiles I don't have bootcfg in there. $ guix --version guix (GNU Guix) 02345c963e1e8a45afcdf5acb80fca4538244b36 I remember something strange: when I reconfigured my system, the 'old generations' menu in grub kept having 11 entrys. It overwrote e.g. entry 7 and entry 8 then was the oldest one. I don't _remember_ switching to an older entry, which would explain that, but that seems to be the only explanation. Maybe the overwriting of an older generation made the grub files dead? I often, but not always, use --no-bootloader. While writing, I try to switch to an older generation, reconfigure (to overwrite one generation) and see what happens. the switching did something surprising: $ sudo guix system switch-generation 5 substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0% The following derivation will be built: /gnu/store/7x9dz7vfzpkvinl5h8bwh0p6x3shcwmy-grub.cfg.drv 14,1 MB will be downloaded: /gnu/store/d8gkn84yqacjr80pzicz1ka3y2s1f2x0-guile-2.2.2 /gnu/store/1jcq4fc07bngc5q1cy44j0glv1vrjz52-libffi-3.2.1 /gnu/store/akc3nsnksgv6256jm1ariljb1c7zh8x2-libgc-7.6.0 /gnu/store/kpxi8h3669afr9r1bgvaf9ij3y4wdyyn-bash-minimal-4.4.12 /gnu/store/lh1hwa0i061lwzyvk9brcsjb6h1gyhrg-ncurses-6.0 .... # error about grub-install failing, because ext2 doesn't support embedding $ sudo grub-install --force /dev/sda3 why does guix need to download something to get to an old configuration? those things should still be in the store! then reconfiguring using my config from the latest generation downloadad again things. This might be because updated guix since I build that generation. but switching to an older generation should not need to do that. that makes rollbacks not real rollbacks, right? guix-gc still looks fine. the youngest generation is now 6. (side note: in grub.cfg, the date of the 6th generation is still the same. I remembered something different above. is this wanted behaviour? I just realized, that a system configuration, that depends on grub.cfg. is not deterministic from the config.scm. It depends on prior entries in grub.cfg. is that the reason there is (or should be) bootcfg in /var/guix/gcroots ?) reboot. guix gc --list-dead looks good. --- end somehow, the grub.cfg now has the dates updated. $ ls -l /var/guix/gcroots/bootcfg lrwxrwxrwx 1 root root 52 18. Dez 13:36 /var/guix/gcroots/bootcfg -> /gnu/store/d3izafd91x81w0bpksyy8s3y09kvy463-grub.cfg $ guix gc --references /var/guix/gcroots/bootcfg /gnu/store/i3l4cv1mz30l4jafbghmbgmafc0xb38h-grub-image.png /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02 $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg see diff [1] below let's switch to the newest generation and try from there: # guix system switch-generation 14 substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0% The following derivation will be built: /gnu/store/31bxx2nwp3lxzdkcy8bmybabfl1pi0af-grub.cfg.drv Von Generation »10« zu »14« gewechselt $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg ## no-output, grub.cfg has still the same content-> /var/guix/gcroots/bootcfg changed # guix system reconfigure confs/config.scm ## mentions expected grub error $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg see diff [2] it does not seem to update /var/guix/gcroots/bootcfg. and bootcfg somehow lists the generation number in the default entry. what's going on here? Martin diff [1]: 44c44 < menuentry "GNU with Linux-Libre 4.14.6 (beta) (#5, 2017-12-16 23:35)" { --- > menuentry "GNU with Linux-Libre 4.14.6 (beta)" { 46c46 < linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/var/guix/profiles/system-5-link --load=/var/guix/profiles/system-5-link/boot --- > linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/gnu/store/qhd80larmjzlbg3i7xrcls808bhk9ixi-system --load=/gnu/store/qhd80larmjzlbg3i7xrcls808bhk9ixi-system/boot 71c71,76 < menuentry "GNU with Linux-Libre 4.14.6 (beta) (#6, 2017-12-17 01:18)" { --- > menuentry "GNU with Linux-Libre 4.14.6 (beta) (#5, 2017-12-16 23:35)" { > search --label --set guix-root > linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/var/guix/profiles/system-5-link --load=/var/guix/profiles/system-5-link/boot > initrd /gnu/store/3ls7xa16y2pghn64vw92wyns83vz1fl6-raw-initrd/initrd > } > menuentry "GNU with Linux-Libre 4.14.6 (beta) (#6, 2017-12-18 13:56)" { 76c81 < menuentry "GNU with Linux-Libre 4.14.6 (beta) (#7, 2017-12-17 01:25)" { --- > menuentry "GNU with Linux-Libre 4.14.6 (beta) (#7, 2017-12-18 14:12)" { diff [2]: 44c44 < menuentry "GNU with Linux-Libre 4.14.6 (beta) (#14, 2017-12-17 22:24)" { --- > menuentry "GNU with Linux-Libre 4.14.6 (beta)" { 46c46 < linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/var/guix/profiles/system-14-link --load=/var/guix/profiles/system-14-link/boot --- > linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/gnu/store/pcmbb1xk3gc0qk68k5kgxch89yy9ac50-system --load=/gnu/store/pcmbb1xk3gc0qk68k5kgxch89yy9ac50-system/boot 113a114,123 > initrd /gnu/store/3ls7xa16y2pghn64vw92wyns83vz1fl6-raw-initrd/initrd > } > menuentry "GNU with Linux-Libre 4.14.6 (beta) (#14, 2017-12-17 22:24)" { > search --label --set guix-root > linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/var/guix/profiles/system-14-link --load=/var/guix/profiles/system-14-link/boot > initrd /gnu/store/3ls7xa16y2pghn64vw92wyns83vz1fl6-raw-initrd/initrd > } > menuentry "GNU with Linux-Libre 4.14.6 (beta) (#15, 2017-12-18 14:58)" { > search --label --set guix-root > linux /gnu/store/qyp42kaw836b5z5j5zaw9sgqw4q05zw4-linux-libre-4.14.6/bzImage --root=guix-root --system=/var/guix/profiles/system-15-link --load=/var/guix/profiles/system-15-link/boot -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-18 14:18 ` Martin Castillo @ 2017-12-18 14:31 ` Ludovic Courtès 2017-12-18 14:46 ` Martin Castillo 0 siblings, 1 reply; 14+ messages in thread From: Ludovic Courtès @ 2017-12-18 14:31 UTC (permalink / raw) To: Martin Castillo; +Cc: 29662 Hi, Martin Castillo <castilma@uni-bremen.de> skribis: >> Normally the current ‘grub.cfg’ is a GC root, which prevents the >> background image and other items from being deleted: >> >> --8<---------------cut here---------------start------------->8--- >> $ ls -l /var/guix/gcroots/bootcfg >> lrwxrwxrwx 1 root root 52 Dec 7 23:21 /var/guix/gcroots/bootcfg -> /gnu/store/2bnr3z8q0rpvdc9zrshhyq4znx7jpzq6-grub.cfg >> $ guix gc --references /var/guix/gcroots/bootcfg >> /gnu/store/i3l4cv1mz30l4jafbghmbgmafc0xb38h-grub-image.png >> /gnu/store/j5x3dfappv9fdp7h46kgm8wxjbcqv5r6-system >> /gnu/store/qkhhqqkr0lkczwqwbp95gx4s8v0pjj41-raw-initrd >> /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02 >> /gnu/store/zi4awdcvrlj0fp74yb0y4ngah4qmcri0-linux-libre-4.14.4 >> $ sudo diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >> $ echo $? >> 0 >> --8<---------------cut here---------------end--------------->8--- [...] > Like I said, I cannot reproduce currently. guix gc --list-dead doesn't > mention grub files anymore. > > below you see what I wrote while doing stuff. it starts with a missing > bootcfg, then doing stuff and at '--- end' I start again with a bootcfg. > > --- start missing bootcfg > > $ ls /var/guix/gcroots > auto/ booted-system current-system profiles > > I don't have bootcfg in there. Under what circumstances did you have a system without /var/guix/gcroots/bootcfg? > # guix system switch-generation 14 > substitute: updating list of substitutes from > 'https://berlin.guixsd.org'... 100.0% > substitute: updating list of substitutes from > 'https://mirror.hydra.gnu.org'... 100.0% > The following derivation will be built: > /gnu/store/31bxx2nwp3lxzdkcy8bmybabfl1pi0af-grub.cfg.drv > Von Generation »10« zu »14« gewechselt > $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg > ## no-output, grub.cfg has still the same content-> > /var/guix/gcroots/bootcfg changed > # guix system reconfigure confs/config.scm > ## mentions expected grub error > $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg > see diff [2] > > it does not seem to update /var/guix/gcroots/bootcfg. > and bootcfg somehow lists the generation number in the default entry. Are you saying that ‘guix system switch-generation’ does not update the target of the /var/guix/gcroots/bootcfg symlink? (From a quick look at the code it seems to update it.) Thanks, Ludo’. ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-18 14:31 ` Ludovic Courtès @ 2017-12-18 14:46 ` Martin Castillo 2018-01-08 14:34 ` Ludovic Courtès 0 siblings, 1 reply; 14+ messages in thread From: Martin Castillo @ 2017-12-18 14:46 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 29662 Hi, On 18.12.2017 15:31, Ludovic Courtès wrote: > Under what circumstances did you have a system without > /var/guix/gcroots/bootcfg? > I cannot tell. I had some fs errors and run e2fsck several times. Maybe that removed the link? But since then, I had done several reconfigures. I'd expect those to recreate it again. >> # guix system switch-generation 14 >> substitute: updating list of substitutes from >> 'https://berlin.guixsd.org'... 100.0% >> substitute: updating list of substitutes from >> 'https://mirror.hydra.gnu.org'... 100.0% >> The following derivation will be built: >> /gnu/store/31bxx2nwp3lxzdkcy8bmybabfl1pi0af-grub.cfg.drv >> Von Generation »10« zu »14« gewechselt >> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >> ## no-output, grub.cfg has still the same content-> >> /var/guix/gcroots/bootcfg changed >> # guix system reconfigure confs/config.scm >> ## mentions expected grub error >> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >> see diff [2] >> >> it does not seem to update /var/guix/gcroots/bootcfg. >> and bootcfg somehow lists the generation number in the default entry. > > Are you saying that ‘guix system switch-generation’ does not update the > target of the /var/guix/gcroots/bootcfg symlink? (From a quick look at > the code it seems to update it.) No, if you read it again, you see that 'switch-generation' updates it correctly. 'reconfigure' doesn't seem to update it! Martin -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2017-12-18 14:46 ` Martin Castillo @ 2018-01-08 14:34 ` Ludovic Courtès 2018-01-08 18:37 ` Martin Castillo 0 siblings, 1 reply; 14+ messages in thread From: Ludovic Courtès @ 2018-01-08 14:34 UTC (permalink / raw) To: Martin Castillo; +Cc: 29662 Hi Martin, Sorry for the delay. Martin Castillo <castilma@uni-bremen.de> skribis: > On 18.12.2017 15:31, Ludovic Courtès wrote: >> Under what circumstances did you have a system without >> /var/guix/gcroots/bootcfg? >> > > I cannot tell. I had some fs errors and run e2fsck several times. Maybe > that removed the link? But since then, I had done several reconfigures. > I'd expect those to recreate it again. OK. >>> # guix system switch-generation 14 >>> substitute: updating list of substitutes from >>> 'https://berlin.guixsd.org'... 100.0% >>> substitute: updating list of substitutes from >>> 'https://mirror.hydra.gnu.org'... 100.0% >>> The following derivation will be built: >>> /gnu/store/31bxx2nwp3lxzdkcy8bmybabfl1pi0af-grub.cfg.drv >>> Von Generation »10« zu »14« gewechselt >>> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >>> ## no-output, grub.cfg has still the same content-> >>> /var/guix/gcroots/bootcfg changed >>> # guix system reconfigure confs/config.scm >>> ## mentions expected grub error >>> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >>> see diff [2] >>> >>> it does not seem to update /var/guix/gcroots/bootcfg. >>> and bootcfg somehow lists the generation number in the default entry. >> >> Are you saying that ‘guix system switch-generation’ does not update the >> target of the /var/guix/gcroots/bootcfg symlink? (From a quick look at >> the code it seems to update it.) > > No, if you read it again, you see that 'switch-generation' updates it > correctly. 'reconfigure' doesn't seem to update it! Looking at guix/scripts/system.scm, ‘install-bootloader’ definitely installs the ‘bootcfg’ symlink, except if ‘grub-install’ fails—which is apparently the case in your transcript above. Why did you write “expected grub error”? A GRUB error is never something one should expect. :-) Ludo’. ^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#29662: 'guix gc' as user makes system unbootable 2018-01-08 14:34 ` Ludovic Courtès @ 2018-01-08 18:37 ` Martin Castillo 0 siblings, 0 replies; 14+ messages in thread From: Martin Castillo @ 2018-01-08 18:37 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 29662 Hi, On 08.01.2018 15:34, Ludovic Courtès wrote: > Hi Martin, > > Sorry for the delay. No problem. > Looking at guix/scripts/system.scm, ‘install-bootloader’ definitely > installs the ‘bootcfg’ symlink, except if ‘grub-install’ fails—which is > apparently the case in your transcript above. Ok, makes sense. > Why did you write “expected grub error”? A GRUB error is never > something one should expect. :-) I have currently set up /dev/sda3 as grub target, which is an ext4 partition. Since grub doesn't support embedding in ext, it fails. One has to manually 'grub-install --force /dev/sda3'. Good thing that you explained this. This is important for the other issue in thread 'Dualbooting with guixsd not handling grub installation'. -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-01-08 18:39 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-12-11 17:21 bug#29662: 'guix gc' as user makes system unbootable Quiliro Ordonez Baca 2017-12-11 21:14 ` Ricardo Wurmus 2017-12-11 21:26 ` Quiliro Ordonez Baca 2017-12-11 21:40 ` Ricardo Wurmus 2017-12-11 22:03 ` Quiliro Ordonez Baca 2017-12-20 14:49 ` Ricardo Wurmus 2017-12-21 21:06 ` Quiliro Ordonez Baca 2017-12-17 22:23 ` Martin Castillo 2017-12-18 9:54 ` Ludovic Courtès 2017-12-18 14:18 ` Martin Castillo 2017-12-18 14:31 ` Ludovic Courtès 2017-12-18 14:46 ` Martin Castillo 2018-01-08 14:34 ` Ludovic Courtès 2018-01-08 18:37 ` Martin Castillo
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.