RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 610466 - mkinitrd has no option --force
Summary: mkinitrd has no option --force
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dracut
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-02 07:41 UTC by Miroslav Suchý
Modified: 2015-09-28 02:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Running mkinitrd alone does not override an existing initramfs image. When this is attempted, the message stated that the "--force" parameter should be used, but mkinitrd only supported the short version "-f" of this parameter. "--force" was added to mkinitrd as the long version.
Clone Of:
Environment:
Last Closed: 2011-05-19 11:53:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0523 0 normal SHIPPED_LIVE dracut bug fix and enhancement update 2011-05-18 17:44:57 UTC

Description Miroslav Suchý 2010-07-02 07:41:27 UTC
Description of problem:
I run:

$ mkinitrd /boot/initramfs-2.6.32-37.el6.x86_64.img 2.6.32-37.el6.x86_64

and got this output:

Will not override existing initramfs (/boot/initramfs-2.6.32-37.el6.x86_64.img) without --force

which is fair. So I add option --force on command line and I get:

[msuchy@dri/~/rhn/spacewalk.pub{master}]$ mkinitrd /boot/initramfs-2.6.32-37.el6.x86_64.img 2.6.32-37.el6.x86_64 --forceusage: mkinitrd [--version] [--help] [-v] [-f] [--preload <module>]
       [--image-version] [--with=<module>]
       <initrd-image> <kernel-version>

       (ex: mkinitrd /boot/initramfs-2.6.32-37.el6.x86_64.img 2.6.32-37.el6.x86_64)

If I use -f instead of --force, then it got accepted. So I would expect that in thet warning is not used --forced option (but -f) or that --force option is recognized as alias for -f

Version-Release number of selected component (if applicable):
# rpm -qf `which mkinitrd`
dracut-004-23.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. try to regenerate initrd for you current kernerl
2. follow the warning and use option --force
  
Actual results:
--force is not recognized

Expected results:
--force is recognized or
warning suggest -f instead of --force

Additional info:

Comment 1 RHEL Program Management 2010-07-02 07:43:06 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Harald Hoyer 2011-02-16 10:57:16 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Running mkinitrd will not override an existing initramfs image. The error message of mkinitrd states to use the "--force" parameter, but mkinitrd does only support the short version "-f" of this parameter. "--force" was added to mkinitrd as the long version.

Comment 6 Alexander Todorov 2011-02-17 13:17:03 UTC
dracut --force test.img $(uname -r) worked for me with dracut-004-38.el6.noarch.

Comment 7 Harald Hoyer 2011-02-17 13:48:05 UTC
(In reply to comment #6)
> dracut --force test.img $(uname -r) worked for me with
> dracut-004-38.el6.noarch.

This bug is for "mkinitrd --force" .. not "dracut --force"

Comment 8 Alexander Todorov 2011-02-17 14:05:21 UTC
Thanks for the notice. Tested this again:

[root@localhost ~]# mkinitrd test.img $(uname -r)
[root@localhost ~]# mkinitrd test.img $(uname -r)
Will not override existing initramfs (/root/test.img) without --force
[root@localhost ~]# mkinitrd --force test.img $(uname -r)
[root@localhost ~]# echo $?
0
[root@localhost ~]# rpm -qf /sbin/mkinitrd 
dracut-004-39.el6.noarch

Comment 9 Laura Bailey 2011-05-05 06:15:25 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Running mkinitrd will not override an existing initramfs image. The error message of mkinitrd states to use the "--force" parameter, but mkinitrd does only support the short version "-f" of this parameter. "--force" was added to mkinitrd as the long version.+Running mkinitrd alone does not override an existing initramfs image. When this is attempted, the message stated that the "--force" parameter should be used, but mkinitrd only supported the short version "-f" of this parameter. "--force" was added to mkinitrd as the long version.

Comment 10 errata-xmlrpc 2011-05-19 11:53:42 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0523.html


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