Bug 23336 - init:"dropping to a shell" no keyboard (usb) to use root shell to correct and exploit rd.debug (no /etc/*)
Summary: init:"dropping to a shell" no keyboard (usb) to use root shell to correct and...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23334
  Show dependency treegraph
 
Reported: 2018-07-21 15:51 CEST by P T
Modified: 2022-05-02 19:25 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
20180721_all (69.55 KB, text/plain)
2018-07-21 15:53 CEST, P T
Details
20180721_grub.cfg (27.80 KB, text/plain)
2018-07-21 15:56 CEST, P T
Details
mnt_var_luck_syslog (175.69 KB, text/plain)
2018-07-21 15:58 CEST, P T
Details

Description P T 2018-07-21 15:51:23 CEST
Description of problem:
dropping to a shell"
no keyboard (usb)

unable to use root shell to correct or exploit rd.debug


...
freeing unused kernel memory 2016K
freeing unused kernel memory 480K
dracut: dracut-044
random: system-udev: initialized urandom read (16 bytes read)
random: system-udev: initialized urandom read (16 bytes read)
random: system-udev: initialized urandom read (16 bytes read)
dracut: Starting Playmouth deomer
random: fast init done
random: crng init done
3.59...random: 7 urandom warning(s) missed du to ratelimiting
[wait minutes]
192....dracut: Warning /dev/sde4 does not exist
generating /run/initramfs/rdsosreport.txt
reboot rd.debug added to command line
dropping to a shell"
no keyboard (usb)

unable to use root shell to correct or exploit rd.debug


Version-Release number of selected component (if applicable):
Cauldron july, saturday the 14th 2018


How reproducible:


Steps to Reproduce:
1. install full M6
2. upgrade to cauldron
3. update grub (new debian stable>testing)
4. rebootin mageia
5. no system partition ? : "dropping to a shell"
6. no keyboard (usb) to use root shell
7. rebootin debian
8. see more




more:


# fdisk -l /dev/sde
Disque /dev/sde : 152,7 GiB, 163928604672 octets, 320173056 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 1B289811-16B8-402E-9D33-82F6095D932D

Périphérique     Début       Fin  Secteurs Taille Type
/dev/sde1         2048    614433    612386   299M Système EFI
/dev/sde2       616448 104547914 103931467  49,6G Système de fichiers Linux
/dev/sde3    104548352 112934911   8386560     4G Système de fichiers Linux
/dev/sde4    112934912 129318911  16384000   7,8G Système de fichiers Linux
/dev/sde5    129318912 145700863  16381952   7,8G Système de fichiers Linux
/dev/sde6    145700864 320169983 174469120  83,2G Système de fichiers Linux


# cfdisk /dev/sde
>>  /dev/sde2                                                                       616448                                 104547914                                 103931467                                  49,6G Système de fichiers Linux

UUID de la partition : 6EB8BEE3-7FC6-4C00-9BF2-EB396EDC8699                                                                                                                                                                                                         Type de la partition : Système de fichiers Linux (0FC63DAF-8483-4772-8E79-3D69D8477DE4)                                                                                                                                                                             UUID du système de fichiers : 53ccf2b9-6f33-42e6-be77-4c58ed3e4b4d                                                                                                                                                                                                                 Système de fichiers : xfs


# mount /dev/sde2 /mnt


# ls -l /mnt/
total 556
drwxr-xr-x   4 root root 122880 juil. 16 01:54 bin
drwxr-xr-x   2 root root      6 juil. 21 14:29 etc
drwxr-xr-x   2 root root   4096 juil.  8 16:22 games
drwxr-xr-x 148 root root  12288 juil. 16 01:23 include
drwxr-xr-x  64 root root  12288 juil. 16 01:54 lib
drwxr-xr-x 270 root root 184320 juil. 16 00:34 lib64
drwxr-xr-x  48 root root  16384 juil. 16 00:34 libexec
drwxr-xr-x  13 root root    142 juin  16 11:05 local
drwxr-xr-x   2 root root  20480 juil.  9 00:41 sbin
drwxr-xr-x 560 root root  16384 juil. 16 01:54 share
drwxr-xr-x   7 root root    187 juil. 16 01:54 src
lrwxrwxrwx   1 root root     10 juin  16 11:05 tmp -> ../var/tmp


# ls -l /mnt/etc
total 0


fdisk /dev/sde4

Bienvenue dans fdisk (util-linux 2.29.2).
Les modifications resteront en mémoire jusqu'à écriture.
Soyez prudent avant d'utiliser la commande d'écriture.

Device /dev/sde4 already contains a ext4 signature.
The signature will be removed by a write command.

Le périphérique ne contient pas de table de partitions reconnue.
Création d'une nouvelle étiquette pour disque de type DOS avec identifiant de disque 0xa114f4d6.

Commande (m pour l'aide) : p
Disque /dev/sde4 : 7,8 GiB, 8388608000 octets, 16384000 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xa114f4d6


#umount /mnt


# mount /dev/sde4 /mnt


# ls -l /mnt
total 88
lrwxrwxrwx   1 root root     7 juin  16 11:05 bin -> usr/bin
drwxr-xr-x   5 root root  4096 juil.  8 15:41 boot
drwxr-xr-x   2 root root  4096 juil.  7 14:07 dev
drwxr-xr-x 167 root root 12288 juil. 16 01:54 etc
drwxr-xr-x   2 root root  4096 juil.  7 14:07 home
drwxr-xr-x   2 root root  4096 juin  16 11:05 initrd
lrwxrwxrwx   1 root root     7 juin  16 11:05 lib -> usr/lib
lrwxrwxrwx   1 root root     9 juin  16 11:05 lib64 -> usr/lib64
drwx------   2 root root 16384 juil.  7 14:07 lost+found
drwxr-xr-x   2 root root  4096 juin  16 11:05 media
drwxr-xr-x   2 root root  4096 juin  16 11:05 mnt
drwxr-xr-x   9 root root  4096 juil.  8 13:23 opt
drwxr-xr-x   2 root root  4096 juil.  7 14:07 proc
drwxr-x---  12 root root  4096 juil. 16 01:54 root
drwxr-xr-x   2 root root  4096 juil.  7 14:07 run
lrwxrwxrwx   1 root root     8 juin  16 11:05 sbin -> usr/sbin
drwxr-xr-x   2 root root  4096 juil.  7 14:07 srv
drwxr-xr-x   2 root root  4096 juil.  7 14:07 sys
drwxr-xr-x   2 root root  4096 juil.  7 14:07 tmp
drwxr-xr-x   2 root root  4096 juil.  7 14:07 usr
drwxr-xr-x   2 root root  4096 juil.  7 14:07 var


# ls /mnt/etc/
acpi                      cron.daily                  dracut.conf    gnome-chess      inputrc         lsb-release            modprobe.d            openswan                pulse             rwtab.d             sudoers              vpnc
adjtime                   cron.deny                   dracut.conf.d  gnome-vfs-2.0    iproute2        lsb-release.d          modprobe.preload      openvpn                 pythonrc.py       rygel.conf          sudoers.d            vulkan
akonadi                   cron.hourly                 drirc          gpm-root.conf    irssi.conf      ltrace.conf            modprobe.preload.d    opt                     qtrc              samba               sudoers.dist         wgetrc
akonadi.categories        cron.monthly                dumpdates      group            issue           lvm                    modules               os-release              razor             sane.d              sysconfig            wmbutton.conf
akonadi.renamecategories  crontab                     dynamic        group-           issue.net       lxdm                   modules.conf          ostree                  rc0.d             sasl2               sysctl.conf          wmcalc.conf
alsa                      cron.weekly                 e2fsck.conf    grub.d           java            lynx.cfg               modules-load.d        PackageKit              rc1.d             scim                sysctl.conf.rpmsave  wmweather.conf
alternatives              cron.yearly                 emacs          gshadow          joe             lynx.lss               motd                  pam.d                   rc2.d             screenrc            sysctl.d             wpa_supplicant.conf
anacrontab                crypto-policies             enlightenment  gshadow-         jvm             lynx-site.cfg          mozpluggerrc          papersize               rc3.d             sectool             systemd              X11
anthy-conf                crypttab                    enscript       gss              jvm-commmon     machine-id             mozpluggerrc.default  passwd                  rc4.d             secure-mcservusers  t1lib                xboard.conf
appstream.conf            csh.cshrc                   enscript.cfg   gssproxy         kde4rc          mageia-release         mplayer               passwd-                 rc5.d             securetty           termcap              xdg
armagetronad              csh.login                   environment    gtk-2.0          kernel          mail                   mtab                  php.d                   rc6.d             security            texmf                xinetd.conf
at.deny                   cups                        exports        gtk-3.0          kon.cfg         mailcap                mtools.conf           pkcs11                  rc.d              services            timidity             xinetd.d
autofs                    cupshelpers                 exports.d      hddtemp.db       krb5.conf       mailman                Muttrc                pki                     rc_keymaps        sgml                tmpfiles.d           xl2tpd
auto.master.d             cvs                         fax.config     host.conf        kstylerc        makedev.d              my.cnf                plymouth                rc_maps.cfg       shadow              Trolltech.conf       xml
avahi                     cyrus.conf                  fetchmailrc    hostname         ld.so.cache     man_db.conf            my.cnf.d              polkit-1                rc.modules        shadow-             trusted-key.key      xpdfrc
bash_completion.d         davfs2                      filesystems    hosts            ld.so.conf      mandrakelinux-release  nail.rc               postfix                 rcS.d             shells              ts.conf              xrdb
bashrc                    dbus-1                      flatpak        hosts.allow      ld.so.conf.d    mandrake-release       nanorc                ppp                     readahead.conf    shorewall           ucarp.d              ytalkrc
binfmt.d                  dconf                       fonts          hosts.deny       lftp.conf       mandriva-release       netconfig             pptp.d                  reader.conf.d     shorewall6          udev                 yum.repos.d
blkid                     default                     freeciv        hosts.equiv      libaudit.conf   materc                 netprofile            preload.conf            redhat-release    signond.conf        updatedb.conf        zemberek-server.ini
bluetooth                 depmod.d                    fstab          hosts.lpd        libgda-5.0      matplotlibrc           NetworkManager        prelude                 release           signon-ui           UPower               zlogin
bogofilter.cf             dhclient-enter-hooks.d      fstab.old      httpd            libnl           mcc.conf               networks              prelude-manager         request-key.conf  skel                ups                  zlogout
bonobo-activation         dhclient-exit-hooks         ftpusers       hylafax          libuser.conf    mdadm.conf             news                  printcap                request-key.d     slsh.rc             urpmi                zprofile
cagibid.conf              dhclient-exit-hooks.d       fuse.conf      idmapd.conf      lightdm         mdadm.conf.rpmnew      nfsmount.conf         product.id              resolvconf        sound               usb_modeswitch.conf  zshenv
chbgrc                    dhcp                        gateways       ifplugd          links.cfg       mdns.allow             nsswitch.conf         product.id.Default      resolv.conf       speech-dispatcher   uucp                 zshrc
chromium                  digidoc.conf                gconf          ifw              locale          menu.d                 ntp                   profile                 rmt               squid               vconsole.conf
chromium-browser          digidocpp                   gdbinit        ImageMagick-7    locale.conf     mgetty+sendfax         ntp.conf              profile.d               rpc               ssh                 vdpau_wrapper.cfg
chrony.conf               DIR_COLORS                  gdbinit.d      imapd.conf       localtime       mime.types             nvidia-current        proftpd-anonymous.conf  rpm               ssl                 version
chrony.keys               dkms                        ggi            info-dir         login.defs      mirrordir              OpenCL                proftpd.conf            rpmlint           statetab            video_format
clutter-imcontext         dleyna-server-service.conf  gimp           init.d           logrotate.conf  mke2fs.conf            openldap              proftpd.d               rsyncd.conf       statetab.d          vim
cron.d                    dnf                         gnome          inittab.rpmsave  logrotate.d     modprobe.conf          opensc.conf           protocols               rwtab             subversion          vnstat.conf


# cat /mnt/etc/fstab
# Entry for /dev/sdd4 :
UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 / ext4 relatime,acl 1 1
# Entry for /dev/sdd1 :
UUID=D0E3-D856 /boot/EFI vfat umask=000,iocharset=utf8 0 0
# Entry for /dev/sdd3 :
UUID=488ad811-007b-446c-b74c-7ee5610da5b7 /home xfs relatime 1 2
none /proc proc defaults 0 0
/dev/md127 /srv xfs relatime 1 2
# Entry for /dev/sdd6 :
UUID=05830058-f649-4866-9d88-90eeb2c86cbd /tmp btrfs relatime 1 2
# Entry for /dev/sdd2 :
UUID=53ccf2b9-6f33-42e6-be77-4c58ed3e4b4d /usr xfs relatime 1 2
# Entry for /dev/sdd5 :
UUID=36f3ab1f-c5d6-472e-85c7-4902eb46f141 /var xfs relatime 1 2


# cat /mnt/etc/version
7 0.4 cauldron


# ls -l /mnt/etc/urpmi
total 24
-rw-r--r-- 1 root root   87 juin  14 15:30 inst.list
drwxr-xr-x 3 root root 4096 juil.  8 11:05 mediacfg.d
-rw------- 1 root root    0 juil.  8 11:06 netrc
-rw-r--r-- 1 root root 3101 juin  17 20:00 prefer.vendor.list
-rw-r--r-- 1 root root    0 juil.  8 11:06 proxy.cfg
-rw-r--r-- 1 root root  134 juin  14 15:30 skip.list
-rw-r--r-- 1 root root 7199 juil.  8 11:06 urpmi.cfg


# cat /mnt/boot/grub2/grub.cfg>20180721_grub.cfg

# ls -l /mnt/boot/grub2/grub.cfg*
-rw-r--r-- 1 root root 28463 juil.  8 15:41 /mnt/boot/grub2/grub.cfg
-rw-r--r-- 1 root root 26756 juil.  8 10:29 /mnt/boot/grub2/grub.cfg.old


# diff /mnt/boot/grub2/grub.cfg*
134,135c134,135
<       linuxefi /boot/vmlinuz-4.17.4-desktop-2.mga7 root=UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 ro  nokmsboot splash quiet noiswmd audit=0
<       initrdefi /boot/initrd-4.17.4-desktop-2.mga7.img
---
>       linuxefi /boot/vmlinuz-4.14.50-desktop-2.mga6 root=/dev/sdd4 ro   nokmsboot splash quiet noiswmd audit=0
>       initrdefi /boot/initrd-4.14.50-desktop-2.mga6.img
138c138
<       menuentry 'Mageia (4.17.4-desktop-2.mga7) 7' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.17.4-desktop-2.mga7-advanced-4eef804d-97bb-4af6-a011-1a3431c038c5' {
---
>       menuentry 'Mageia (4.14.50-desktop-2.mga6) 6' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.50-desktop-2.mga6-advanced-4eef804d-97bb-4af6-a011-1a3431c038c5' {
151,182c151
<               linuxefi /boot/vmlinuz-4.17.4-desktop-2.mga7 root=UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 ro  nokmsboot splash quiet noiswmd audit=0
<               initrdefi /boot/initrd-4.17.4-desktop-2.mga7.img
<       }
<       menuentry 'Mageia (4.17.4-desktop-2.mga7) 7 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.17.4-desktop-2.mga7-recovery-4eef804d-97bb-4af6-a011-1a3431c038c5' {
<               load_video
<               set gfxpayload=auto
<               insmod gzio
<               insmod part_gpt
<               insmod ext2
<               set root='hd3,gpt4'
<               if [ x$feature_platform_search_hint = xy ]; then
<                 search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt4 --hint-efi=hd3,gpt4 --hint-baremetal=ahci3,gpt4  4eef804d-97bb-4af6-a011-1a3431c038c5
<               else
<                 search --no-floppy --fs-uuid --set=root 4eef804d-97bb-4af6-a011-1a3431c038c5
<               fi
<               linuxefi /boot/vmlinuz-4.17.4-desktop-2.mga7 root=UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 ro failsafe 
<               initrdefi /boot/initrd-4.17.4-desktop-2.mga7.img
<       }
<       menuentry 'Mageia (4.14.50-desktop-2.mga6) 7' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.50-desktop-2.mga6-advanced-4eef804d-97bb-4af6-a011-1a3431c038c5' {
<       savedefault
<               load_video
<               set gfxpayload=auto
<               insmod gzio
<               insmod part_gpt
<               insmod ext2
<               set root='hd3,gpt4'
<               if [ x$feature_platform_search_hint = xy ]; then
<                 search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt4 --hint-efi=hd3,gpt4 --hint-baremetal=ahci3,gpt4  4eef804d-97bb-4af6-a011-1a3431c038c5
<               else
<                 search --no-floppy --fs-uuid --set=root 4eef804d-97bb-4af6-a011-1a3431c038c5
<               fi
<               linuxefi /boot/vmlinuz-4.14.50-desktop-2.mga6 root=UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 ro  nokmsboot splash quiet noiswmd audit=0
---
>               linuxefi /boot/vmlinuz-4.14.50-desktop-2.mga6 root=/dev/sdd4 ro   nokmsboot splash quiet noiswmd audit=0
185c154
<       menuentry 'Mageia (4.14.50-desktop-2.mga6) 7 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.50-desktop-2.mga6-recovery-4eef804d-97bb-4af6-a011-1a3431c038c5' {
---
>       menuentry 'Mageia (4.14.50-desktop-2.mga6) 6 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.50-desktop-2.mga6-recovery-4eef804d-97bb-4af6-a011-1a3431c038c5' {
197c166
<               linuxefi /boot/vmlinuz-4.14.50-desktop-2.mga6 root=UUID=4eef804d-97bb-4af6-a011-1a3431c038c5 ro failsafe 
---
>               linuxefi /boot/vmlinuz-4.14.50-desktop-2.mga6 root=/dev/sdd4 ro failsafe 


# mount /dev/sde1 /mnt/boot/EFI/


# ls -l /mnt/boot/EFI/
total 4
drwxr-xr-x 4 root root 4096 juil. 16 03:07 EFI


# ls -l /mnt/boot/EFI/EFI/
total 8
drwxr-xr-x 2 root root 4096 juil. 16 03:07 debian
drwxr-xr-x 2 root root 4096 juil.  8 10:30 mageia


# mount /dev/sde3 /mnt/home/


# mount /dev/sde6 /mnt/tmp/


# mount /dev/sde2 /mnt/usr


# mount /dev/sde5 /mnt/var


# mount
...
/dev/sde4 on /mnt type ext4 (rw,relatime,data=ordered)
/dev/sde1 on /mnt/boot/EFI type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sde3 on /mnt/home type xfs (rw,relatime,attr2,inode64,noquota)
/dev/sde6 on /mnt/tmp type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
/dev/sde2 on /mnt/usr type xfs (rw,relatime,attr2,inode64,noquota)
/dev/sde5 on /mnt/var type xfs (rw,relatime,attr2,inode64,noquota)


# ls -l /mnt/var
# ls -l /mnt/var
total 8
drwxr-xr-x 14 root root  181 juil. 16 00:31 cache
drwxr-xr-x  4 root root   26 juil.  7 22:00 catman
drwxr-xr-x  3 root root   18 juin  16 11:05 db
drwxr-xr-x  2 root root    6 déc.  20  2017 empty
drwxr-xr-x  3 root root   17 déc.  23  2017 ftp
drwxr-xr-x  5 root root  105 oct.  12  2017 games
drwxr-xr-x 67 root root 4096 juil. 16 00:32 lib
drwxr-xr-x  2 root root    6 juin  16 11:05 local
lrwxrwxrwx  1 root root   11 juin  16 11:05 lock -> ../run/lock
drwxr-xr-x 22 root root 4096 juil. 16 01:56 log
lrwxrwxrwx  1 root root   10 juin  16 11:05 mail -> spool/mail
drwxr-xr-x  2 root root    6 juin  16 11:05 nis
drwxr-xr-x  2 root root    6 juin  16 11:05 opt
drwxr-xr-x  2 root root    6 juin  16 11:05 preserve
lrwxrwxrwx  1 root root    6 juin  16 11:05 run -> ../run
drwxr-xr-x 19 root root  244 juin  16 11:05 spool
drwxr-xr-x  3 root root   17 juil.  7 20:16 state
drwxrwxrwt  2 root root    6 juil. 16 01:56 tmp
drwxr-xr-x  4 root root   33 juil.  7 20:45 www
drwxr-xr-x  2 root root    6 juin  16 11:05 yp


ls -l /mnt/var/log
total 476
-rw-r--r--  1 root root   10939 juil. 16 01:03 boot.log
-rw-rw----  1 root cdrom      0 juil.  8 12:32 btmp
drwxr-xr-x  2  965   956      6 nov.  28  2016 chrony
-rw-r--r--  1 root root   60535 juil.  8 10:41 dmesg
drwx--x--x  2 root   981      6 janv.  1  2018 gdm
drwxr-xr-x  2 root root      64 mars  27 09:59 httpd
drwxr-sr-x+ 3 root   998     46 mai   26 11:59 journal
-rw-rw-r--  1 root cdrom 292292 juil. 16 01:03 lastlog
drwxr-xr-x  2 root root      48 juil.  8 12:51 lightdm
drwxrwsr-x  2 mail man       19 juil.  8 10:44 mailman
-rw-r-----  1 root adm     7338 juil. 16 01:01 msec.log
drwxr-xr-x  2  963   952      6 juil.  6 15:04 mysqld
-rw-r--r--  1 root root     310 juil. 16 01:56 net_monitor.log
-rw-r--r--  1 root root     418 juil.  7 16:05 netprofile.log
drwxr-xr-x  2  964   953      6 avril  1 10:45 ntpstats
drwx------  2  968   962     24 févr. 10 20:51 postgres
drwx------  2 root root      28 juil.  7 17:30 ppp
-rw-------  1 root root       0 juil.  8 10:44 preload.log
drwxr-x---  2  977   972     48 janv. 13  2018 prelude-manager
drwxr-xr-x  2 root root       6 déc.  23  2017 proftpd
drwxr-xr-x  2 root root       6 oct.   3  2017 razor
-rw-r--r--  1 root root    1040 mai   26 11:57 README
-rw-r--r--  1 root root  152895 juil.  8 11:51 rpmpkgs
drwx------  3 root root      17 avril  5 21:22 samba
drwxr-----  2 root adm     4096 juil.  9 04:02 security
-rw-r-----  1 root adm     8521 juil.  9 04:02 security.log
-rw-------  1 root root   30557 juil. 16 01:56 shorewall6-init.log
-rw-------  1 root root   37883 juil. 16 01:56 shorewall-init.log
drwxr-xr-x  2 root root      27 juil.  9 04:10 spamassassin
drwxr-xr-x  2 root root       6 janv.  7  2018 speech-dispatcher
drwxr-xr-x  2  970   964     23 janv. 22 13:50 squid
drwxr-x---  2 root root       6 juin   3  2017 sudo-io
-rw-------  1 root root       0 juil.  7 20:28 sudo.log
-rw-------  1 root root       0 juil.  8 13:10 tallylog
drwxr-xr-x  2 uucp    14     43 juil.  7 17:50 uucp
-rw-rw-r--  1 root cdrom  16128 juil. 16 01:56 wtmp
-rw-rw-r--  1 root cdrom  12672 juil.  9 01:28 wtmp.1
-rw-r--r--  1 root root    4202 juil. 16 01:38 Xorg.0.log
-rw-r--r--  1 root root    5517 juil. 16 01:04 Xorg.0.log.old
-rw-r--r--  1 root a      34609 juil.  9 01:25 Xorg.1.log
-rw-r--r--  1 root a      28523 juil.  9 00:41 Xorg.1.log.old
-rw-r--r--  1 root root    5522 juil. 16 01:18 Xorg.9.log
-rw-r--r--  1 root root    5492 juil. 16 01:01 Xorg.9.log.old


# cat /mnt/var/log/syslog
cat: /mnt/var/log/syslog: Aucun fichier ou dossier de ce type


# cat /mnt/var/log/boot.log 
rw,relatime,data=ordered
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target OpenVPN Networks.
[  OK  ] Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Reached target Swap.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Created slice System Slice.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Listening on Journal Socket.
         Starting Load Kernel Modules...
         Starting File System Check on Root Device...
[  OK  ] Listening on Network Service Netlink Socket.
         Starting Setup Virtual Console...
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Reached target RPC Port Mapper.
         Starting Create list of required static device nodes for the current kernel...
         Starting Load legacy module configuration...
         Starting Software RAID Monitor Takeover...
         Mounting Kernel Debug File System...
[  OK  ] Reached target Slices.
         Starting Journal Service...
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
         Mounting Huge Pages File System...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Mounting POSIX Message Queue File System...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Software RAID Monitor Takeover.
         Starting Apply Kernel Variables...
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Configure read-only root support...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Load legacy module configuration.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started Configure read-only root support.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Service...
         Starting Show Plymouth Boot Screen...
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Started Network Service.
[  OK  ] Found device Maxtor_6L160M0 3.
         Mounting FUSE Control File System...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Found device /dev/md127.
[  OK  ] Found device Maxtor_6L160M0 1.
[  OK  ] Found device Maxtor_6L160M0 6.
[  OK  ] Reached target Sound Card.
[  OK  ] Found device Maxtor_6L160M0 2.
[  OK  ] Found device Maxtor_6L160M0 5.
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Local Encrypted Volumes.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Local File Systems (Pre).
         Starting File System Check on /dev/disk/by-uuid/488ad811-007b-446c-b74c-7ee5610da5b7...
         Starting File System Check on /dev/disk/by-uuid/53ccf2b9-6f33-42e6-be77-4c58ed3e4b4d...
         Starting File System Check on /dev/disk/by-uuid/05830058-f649-4866-9d88-90eeb2c86cbd...
         Mounting /boot/EFI...
         Starting File System Check on /dev/disk/by-uuid/36f3ab1f-c5d6-472e-85c7-4902eb46f141...
         Starting File System Check on /dev/md127...
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started File System Check on /dev/disk/by-uuid/53ccf2b9-6f33-42e6-be77-4c58ed3e4b4d.
[  OK  ] Started File System Check on /dev/md127.
         Mounting /srv...
[  OK  ] Mounted /srv.
[  OK  ] Started File System Check on /dev/disk/by-uuid/05830058-f649-4866-9d88-90eeb2c86cbd.
         Mounting /tmp...
[  OK  ] Mounted /boot/EFI.
[  OK  ] Started File System Check on /dev/disk/by-uuid/488ad811-007b-446c-b74c-7ee5610da5b7.
[  OK  ] Started File System Check on /dev/disk/by-uuid/36f3ab1f-c5d6-472e-85c7-4902eb46f141.
         Mounting /var...
         Mounting /home...
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Mounted /tmp.
[  OK  ] Mounted /var.
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Mounted /home.
[  OK  ] Reached target Local File Systems.
         Starting run dkms_autoinstaller on every boot to rebuild dkms modules for newly booted kernels...
         Starting Preprocess NFS configuration...
         Starting Restore /run/initramfs on shutdown...
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Started Restore /run/initramfs on shutdown.
[  OK  ] Started Create Volatile Files and Directories.
         Mounting RPC Pipe File System...
         Starting Update UTMP about System Boot/Shutdown...
         Starting RPC Bind...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
         Starting OSS (Open Sound System) Proxy Daemon...
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Updates mlocate database every day.
[  OK  ] Reached target Timers.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Started OSS (Open Sound System) Proxy Daemon.
[  OK  ] Started RPC Bind.
[  OK  ] Started run dkms_autoinstaller on every boot to rebuild dkms modules for newly booted kernels.
[  OK  ] Reached target Basic System.
         Starting LSB: Nameserver information manager...
         Starting Software RAID monitoring and management...
         Starting GSSAPI Proxy Daemon...
         Starting LSB: Wait for the hotplugged network to be up...
[  OK  ] Started Manage Sound Card State (restore and store).
         Starting LSB: Checks if a partition is close to full up...
         Starting LSB: Enables MSEC security policy on boot...
[  OK  ] Started D-Bus System Message Bus.
         Starting Console Mouse manager...
[  OK  ] Started Hard drive temperature monitor daemon.
         Starting Daemon for power management...
         Starting Configure CPU power related settings...
[  OK  ] Started irqbalance daemon.
[  OK  ] Started Job spooling tools.
         Starting Adapt Mageia theme to the monitor resolution...
         Starting LSB: Locks NumLock key at init runlevel change...
         Starting NTP client/server...
         Starting Login Service...
         Starting Run prelude-manager...
         Starting ACPI Event Daemon...
[  OK  ] Started Make remote CUPS printers available locally.
         Starting RealtimeKit Scheduling Policy Service...
[FAILED] Failed to start Software RAID monitoring and management.
See 'systemctl status mdmonitor.service' for details.
[  OK  ] Started GSSAPI Proxy Daemon.
[  OK  ] Started LSB: Enables MSEC security policy on boot.
[  OK  ] Started Console Mouse manager.
[  OK  ] Reached target NFS client services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: Adaptive readahead daemon...
[  OK  ] Started Login Service.
[  OK  ] Started LSB: Locks NumLock key at init runlevel change.
[  OK  ] Started RealtimeKit Scheduling Policy Service.
[  OK  ] Started ACPI Event Daemon.
[  OK  ] Started NTP client/server.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Started LSB: Checks if a partition is close to full up.
[  OK  ] Started Configure CPU power related settings.
[  OK  ] Started Daemon for power management.
[  OK  ] Started Run prelude-manager.
[  OK  ] Started LSB: Nameserver information manager.
         Starting LSB: Bring up/down networking...
[  OK  ] Started Adapt Mageia theme to the monitor resolution.
[  OK  ] Started LSB: Adaptive readahead daemon.
[  OK  ] Started LSB: Bring up/down networking.
[  OK  ] Started LSB: Wait for the hotplugged network to be up.
[  OK  ] Reached target Network.
         Starting OpenSSH server daemon...
         Starting Xinetd A Powerful Replacement For Inetd...
         Starting GNU Mailing List Manager...
         Starting PostgreSQL database server...
         Starting Permit User Sessions...
[  OK  ] Started Level 2 Tunnel Protocol Daemon (L2TP).
         Starting Network Name Resolution...
[  OK  ] Started Xinetd A Powerful Replacement For Inetd.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Command Scheduler.
         Starting Terminate Plymouth Boot Screen...
         Starting Hold until boot process finishes up...


# file /mnt/var/log/journal/469366306bdf4097becd0dcea468a9c6/system.journal 
/mnt/var/log/journal/469366306bdf4097becd0dcea468a9c6/system.journal: Journal file, offline


# file /mnt/var/log/*
/mnt/var/log/boot.log:            ASCII text, with CRLF line terminators, with escape sequences
/mnt/var/log/btmp:                empty
/mnt/var/log/chrony:              directory
/mnt/var/log/dmesg:               ASCII text
/mnt/var/log/gdm:                 directory
/mnt/var/log/httpd:               directory
/mnt/var/log/journal:             setgid, directory
/mnt/var/log/lastlog:             data
/mnt/var/log/lightdm:             directory
/mnt/var/log/mailman:             setgid, directory
/mnt/var/log/msec.log:            ASCII text
/mnt/var/log/mysqld:              directory
/mnt/var/log/net_monitor.log:     ASCII text
/mnt/var/log/netprofile.log:      ASCII text
/mnt/var/log/ntpstats:            directory
/mnt/var/log/postgres:            directory
/mnt/var/log/ppp:                 directory
/mnt/var/log/preload.log:         empty
/mnt/var/log/prelude-manager:     directory
/mnt/var/log/proftpd:             directory
/mnt/var/log/razor:               directory
/mnt/var/log/README:              ASCII text
/mnt/var/log/rpmpkgs:             ASCII text
/mnt/var/log/samba:               directory
/mnt/var/log/security:            directory
/mnt/var/log/security.log:        ASCII text
/mnt/var/log/shorewall6-init.log: ASCII text
/mnt/var/log/shorewall-init.log:  ASCII text
/mnt/var/log/spamassassin:        directory
/mnt/var/log/speech-dispatcher:   directory
/mnt/var/log/squid:               directory
/mnt/var/log/sudo-io:             directory
/mnt/var/log/sudo.log:            empty
/mnt/var/log/tallylog:            empty
/mnt/var/log/uucp:                directory
/mnt/var/log/wtmp:                Hitachi SH big-endian COFF object file, not stripped, 0 section, symbol offset=0x74747932
/mnt/var/log/wtmp.1:              data
/mnt/var/log/Xorg.0.log:          ASCII text
/mnt/var/log/Xorg.0.log.old:      ASCII text
/mnt/var/log/Xorg.1.log:          ASCII text
/mnt/var/log/Xorg.1.log.old:      ASCII text
/mnt/var/log/Xorg.9.log:          ASCII text
/mnt/var/log/Xorg.9.log.old:      ASCII text


# file /mnt/var/log/*/*
/mnt/var/log/httpd/access_log:                         empty
/mnt/var/log/httpd/error_log:                          ASCII text
/mnt/var/log/httpd/ssl_request_log:                    empty
/mnt/var/log/journal/469366306bdf4097becd0dcea468a9c6: setgid, directory
/mnt/var/log/lightdm/lightdm.log:                      empty
/mnt/var/log/lightdm/lightdm.log.old:                  empty
/mnt/var/log/mailman/error:                            ASCII text
/mnt/var/log/postgres/postgresql:                      ASCII text
/mnt/var/log/ppp/connect-errors:                       empty
/mnt/var/log/prelude-manager/prelude.log:              empty
/mnt/var/log/prelude-manager/prelude-xml.log:          empty
/mnt/var/log/samba/old:                                directory
/mnt/var/log/security/firewall.daily.diff:             unified diff output, ASCII text
/mnt/var/log/security/firewall.daily.today:            ASCII text
/mnt/var/log/security/firewall.daily.yesterday:        ASCII text
/mnt/var/log/security/groups_list.daily.diff:          unified diff output, ASCII text
/mnt/var/log/security/groups_list.daily.today:         ASCII text
/mnt/var/log/security/groups_list.daily.yesterday:     ASCII text
/mnt/var/log/security/mail.daily.today:                diff output, ASCII text
/mnt/var/log/security/mail.daily.yesterday:            diff output, ASCII text
/mnt/var/log/security/mail.weekly.today:               diff output, UTF-8 Unicode text
/mnt/var/log/security/open_port.daily.diff:            unified diff output, ASCII text
/mnt/var/log/security/open_port.daily.today:           ASCII text
/mnt/var/log/security/open_port.daily.yesterday:       ASCII text
/mnt/var/log/security/rpm-qa.weekly.today:             ASCII text
/mnt/var/log/security/sgid.weekly.today:               ASCII text
/mnt/var/log/security/suid_md5.daily.today:            empty
/mnt/var/log/security/suid_md5.daily.yesterday:        empty
/mnt/var/log/security/suid_md5.monthly.today:          empty
/mnt/var/log/security/suid_md5.weekly.today:           ASCII text
/mnt/var/log/security/suid_root.weekly.today:          ASCII text
/mnt/var/log/security/unowned_group.weekly.today:      UTF-8 Unicode text
/mnt/var/log/security/unowned_user.weekly.today:       UTF-8 Unicode text
/mnt/var/log/security/users_list.daily.diff:           unified diff output, ASCII text
/mnt/var/log/security/users_list.daily.today:          ASCII text
/mnt/var/log/security/users_list.daily.yesterday:      ASCII text
/mnt/var/log/security/writable.weekly.today:           ASCII text
/mnt/var/log/spamassassin/sa-update.log:               empty
/mnt/var/log/squid/cache.log:                          ASCII text
/mnt/var/log/uucp/Debug:                               empty
/mnt/var/log/uucp/Log:                                 empty
/mnt/var/log/uucp/Stats:                               empty


# journalctl --help


# journalctl -ab -D /mnt/var/log/journal/>mnt_var_luck_syslog


# make a command "logtxt ON" again (even double journalization) for easier grep and testing purpose
/var/log/logtxt #contains ASCII files support when "logtxt ON"
thanks.
Comment 1 P T 2018-07-21 15:53:48 CEST
Created attachment 10285 [details]
20180721_all

all comments

CC: (none) => patrick.agelinux

Comment 2 P T 2018-07-21 15:56:22 CEST
Created attachment 10286 [details]
20180721_grub.cfg

grub.cfg
Comment 3 P T 2018-07-21 15:58:09 CEST
Created attachment 10287 [details]
mnt_var_luck_syslog

journalctl -ab -D /mnt/var/log/journal/>mnt_var_luck_syslog
P T 2018-07-21 16:10:10 CEST

Blocks: (none) => 23334

David Walser 2018-07-21 16:53:00 CEST

Component: Security => RPM Packages
QA Contact: security => (none)

Comment 4 Marja Van Waes 2018-07-22 17:21:54 CEST
It seems you have a mixed BIOS-compatible and UEFI system:

juil. 16 01:03:02 atilde.local systemd[1]: Mounting /boot/EFI...

juil. 16 01:03:02 atilde.local systemd[1]: Mounted /boot/EFI.

juil. 16 01:19:08 atilde.local drakx11[23079]: found a dos partition table on /dev/sda at sector 0

juil. 16 01:19:08 atilde.local drakx11[23079]: found a dos partition table on /dev/sdb at sector 0

juil. 16 01:19:08 atilde.local drakx11[23079]: found a dos partition table on /dev/sdc at sector 0

juil. 16 01:19:09 atilde.local drakx11[23079]: found a gpt partition table on /dev/sdd at sector 0

juil. 16 01:19:10 atilde.local drakx11[23079]: found a gpt partition table on /dev/sde at sector 0

So, IIUC you have Debian installed in non-UEFI mode, and Mageia in UEFI mode.

AFAIK we can't support mixing UEFI with non-UEFI (aka CSM or legacy BIOS) mode, see https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware#When_to_choose_the_BIOS_compatibility_mode

However, assigning to the base system maintainers, in case I missed something.

CC: (none) => marja11
Assignee: bugsquad => basesystem

Comment 5 sturmvogel 2022-05-02 19:25:32 CEST
This bug was filed against MGA6/cauldron which is EOL since Sep 2019.

Closing as OLD.

Resolution: (none) => OLD
Status: NEW => RESOLVED


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