Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544382 - For sys-kernel/dracut generated image with sys-apps/systemd: error on boot: umount: /usr: target is busy systemd[1]: Failed unmounting /usr.
Summary: For sys-kernel/dracut generated image with sys-apps/systemd: error on boot: u...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 19:05 UTC by thunder367
Modified: 2015-09-07 18:43 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config for grub (grub.cfg,4.67 KB, text/plain)
2015-03-24 19:06 UTC, thunder367
Details
Default parameters for grub (grub,2.14 KB, text/plain)
2015-03-24 19:07 UTC, thunder367
Details
Config for dracut (dracut.conf,1.77 KB, text/plain)
2015-03-24 19:08 UTC, thunder367
Details
Kernel config file (renamed from hiden) (config,109.45 KB, text/plain)
2015-03-24 19:11 UTC, thunder367
Details
emerge --info (emerge_info.txt,6.98 KB, text/plain)
2015-03-24 19:15 UTC, thunder367
Details
Config fstab (fstab,992 bytes, text/plain)
2015-03-24 19:18 UTC, thunder367
Details
emerge -pv dracut (emerge_dracut_pv.txt,229 bytes, text/plain)
2015-03-24 19:19 UTC, thunder367
Details
make.conf (make.conf,3.64 KB, text/plain)
2015-03-24 19:20 UTC, thunder367
Details
blkid devices (blkid,1.65 KB, text/plain)
2015-03-29 10:42 UTC, thunder367
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thunder367 2015-03-24 19:05:19 UTC
In journalctl many record about unmount /usr for boot process. For generate initramfs I used dracaut.

мар 24 20:16:29 miheev dracut: Checking ext4: /dev/disk/by-uuid/28bbf789-964d-4d92-ad0a-c05fee49a9d0
мар 24 20:16:29 miheev dracut: issuing e2fsck -a  /dev/disk/by-uuid/28bbf789-964d-4d92-ad0a-c05fee49a9d0
мар 24 20:16:29 miheev dracut: /dev/disk/by-uuid/28bbf789-964d-4d92-ad0a-c05fee49a9d0: clean, 11177/1966080 files, 466033/7864320 blocks
мар 24 20:16:29 miheev dracut: Mounting /dev/disk/by-uuid/28bbf789-964d-4d92-ad0a-c05fee49a9d0 with -o defaults,errors=remount-ro,ro
мар 24 20:16:29 miheev kernel: EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: errors=remount-ro
мар 24 20:16:29 miheev dracut: Mounted root filesystem /dev/mapper/vg-gentoo--root
мар 24 20:16:29 miheev dracut: Checking ext4: /dev/mapper/vg-gentoo--usr
мар 24 20:16:29 miheev dracut: issuing e2fsck -a  /dev/mapper/vg-gentoo--usr
мар 24 20:16:29 miheev dracut: /dev/mapper/vg-gentoo--usr: clean, 521440/1966080 files, 4885514/7864320 blocks
мар 24 20:16:29 miheev dracut: Mounting /usr with -o defaults,ro
мар 24 20:16:29 miheev kernel: EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
мар 24 20:16:29 miheev dracut: Switching root
мар 24 20:16:29 miheev kernel: random: nonblocking pool is initialized
мар 24 20:16:29 miheev kernel: vboxdrv: Found 4 processor cores.
мар 24 20:16:29 miheev kernel: vboxdrv: fAsync=0 offMin=0x189 offMax=0x1ba8
мар 24 20:16:29 miheev kernel: vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
мар 24 20:16:29 miheev kernel: vboxdrv: Successfully loaded version 4.3.18 (interface 0x001a0008).
мар 24 20:16:29 miheev systemd-journal[2279]: Journal started
мар 24 20:16:29 miheev systemd-modules-load[2274]: Inserted module 'vboxnetflt'
мар 24 20:16:29 miheev systemd-modules-load[2274]: Inserted module 'vboxnetadp'
мар 24 20:16:29 miheev systemd-sysctl[2964]: Overwriting earlier assignment of kernel/sysrq in file '/usr/lib64/sysctl.d/60-gentoo.conf'.
мар 24 20:16:30 miheev systemd-fsck[2273]: /dev/mapper/vg-gentoo--root: clean, 11177/1966080 files, 466033/7864320 blocks
мар 24 20:16:30 miheev kernel: EXT4-fs (dm-7): re-mounted. Opts: (null)
мар 24 20:16:30 miheev kernel: EXT4-fs (dm-6): re-mounted. Opts: errors=remount-ro
мар 24 20:16:30 miheev umount[2982]: umount: /usr: target is busy
мар 24 20:16:30 miheev umount[2982]: (In some cases useful info about processes that
мар 24 20:16:30 miheev umount[2982]: use the device is found by lsof(8) or fuser(1).)
мар 24 20:16:30 miheev systemd[1]: usr.mount mount process exited, code=exited status=32
мар 24 20:16:30 miheev systemd[1]: Failed unmounting /usr.
мар 24 20:16:30 miheev umount[2984]: umount: /usr: target is busy
мар 24 20:16:30 miheev umount[2984]: (In some cases useful info about processes that
мар 24 20:16:30 miheev umount[2984]: use the device is found by lsof(8) or fuser(1).)
мар 24 20:16:30 miheev systemd[1]: usr.mount mount process exited, code=exited status=32
мар 24 20:16:30 miheev systemd[1]: Failed unmounting /usr.
мар 24 20:16:30 miheev umount[2986]: umount: /usr: target is busy
мар 24 20:16:30 miheev umount[2986]: (In some cases useful info about processes that
мар 24 20:16:30 miheev umount[2986]: use the device is found by lsof(8) or fuser(1).)
мар 24 20:16:30 miheev systemd[1]: usr.mount mount process exited, code=exited status=32
....
мар 24 20:16:32 miheev kernel: fbcon: inteldrmfb (fb0) is primary device
мар 24 20:16:32 miheev kernel: ACPI: Video Device [VID] (multi-head: yes  rom: no  post: no)
мар 24 20:16:32 miheev kernel: e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
мар 24 20:16:32 miheev kernel: e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
....
NEXT MESSAGE BOOT PROCESS

Reproducible: Always

Steps to Reproduce:
1.Boot
2.Exec journalctl -b
3.
Comment 1 thunder367 2015-03-24 19:06:20 UTC
Created attachment 399644 [details]
Config for grub
Comment 2 thunder367 2015-03-24 19:07:48 UTC
Created attachment 399646 [details]
Default parameters for grub
Comment 3 thunder367 2015-03-24 19:08:43 UTC
Created attachment 399648 [details]
Config for dracut
Comment 4 thunder367 2015-03-24 19:11:12 UTC
Created attachment 399654 [details]
Kernel config file (renamed from hiden)
Comment 5 thunder367 2015-03-24 19:15:39 UTC
Created attachment 399656 [details]
emerge --info
Comment 6 thunder367 2015-03-24 19:18:10 UTC
Created attachment 399658 [details]
Config fstab
Comment 7 thunder367 2015-03-24 19:19:12 UTC
Created attachment 399660 [details]
emerge -pv dracut
Comment 8 thunder367 2015-03-24 19:20:12 UTC
Created attachment 399662 [details]
make.conf
Comment 9 thunder367 2015-03-24 19:26:38 UTC
In my system used 2 operating system. I used systemd and dracut. Partition table on GPT and EFI for boot.

miheev / # parted -l
Model: ATA HGST HTS721010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  316MB   315MB   ntfs         Basic data partition          hidden, diag
 2      316MB   420MB   105MB   fat32        EFI system partition          boot, esp
 3      420MB   555MB   134MB                Microsoft reserved partition  msftres
 4      555MB   500GB   500GB   ntfs         Basic data partition          msftdata
 5      500GB   501GB   1000MB  ext4         Linux Boot Partition          msftdata
 6      501GB   1000GB  499GB                Linux LVM Partition           lvm
Comment 10 Alex Xu (Hello71) 2015-03-27 22:34:15 UTC
Remove /usr from /etc/fstab.
Comment 11 thunder367 2015-03-28 19:53:09 UTC
(In reply to Alex Xu (Hello71) from comment #10)
> Remove /usr from /etc/fstab.

If I remove /usr from /etc/fstab operating system not boot.
Comment 12 thunder367 2015-03-29 10:42:19 UTC
Created attachment 400008 [details]
blkid devices
Comment 13 Alexander Tsoy 2015-03-30 22:33:22 UTC
umount errors appears after switching root, so I don't see how dracut is involved. Fedora bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1159648
Comment 14 Alexander Tsoy 2015-05-23 21:15:45 UTC
Someone on redhat BZ reported that systemd-219_p112 works fine. Can you confirm this?
Comment 15 Pacho Ramos gentoo-dev 2015-09-07 18:43:33 UTC
(In reply to Alexander Tsoy from comment #14)
> Someone on redhat BZ reported that systemd-219_p112 works fine. Can you
> confirm this?

Also try with 225