[Novalug] root password buggered

Derek LaHousse dlahouss@mtu.edu
Tue May 26 13:12:28 EDT 2015


http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken/

Debian equiv: https://wiki.debian.org/InitramfsDebug#Rescue_shell_.28also_known_as_initramfs_shell.29



On Tue, May 26, 2015 at 12:58 PM, Bryan J Smith via Novalug
<novalug@firemountain.net> wrote:
> Hence my warning ...
>
>   "This solution is not limited to Fedora, although
>    many distros have not implemented most of Dracut's advanced
>    capabilities like Fedora-based or SuSE-based distros."
>
> But in any case, the environment one gets a system is much better,
> safer and more deterministic environment if one uses the Dracut image
> actually created for it.  ;)
>
> -- bjs
>
> P.S.  In general, it is highly not recommended to make a separate
> "/usr" from "/" on Fedora/RHEL as well, other than for stateless
> deployments (long story), although it is still allowed (for a time, it
> was not).
>
>
> On Tue, May 26, 2015 at 12:52 PM, William Sutton <william@trilug.org> wrote:
>> footnote:  not all distro dracut builds are created equal.  AFAICT from my
>> last attempt at a gentoo install, they've actually modified the dracut they
>> provided to prevent you from doing things they don't think you should do...
>> like putting /usr on a separate filesystem from /.
>>
>> William Sutton
>>
>> On Tue, 26 May 2015, Bryan J Smith via Novalug wrote:
>>
>>> Heck, someone even created a YouTube video of this using CentOS 7.
>>> - https://www.youtube.com/watch?v=5KtVtrbTgTk
>>>
>>> The ability to leverage Dracut's rd.break (root disk breakpoints)
>>> should not be overlooked.  It's the safest, most deterministic way, to
>>> boot a system, as deployed, instead of an arbitrary image.
>>>
>>> I.e., as long as the bootloader can load the Dracut image (initramfs
>>> aka initrd), it's going to give you an environment as close to your
>>> system as possible, and far better than anything external (like a Live
>>> image).
>>>
>>> If you're system uses Dracut, please learn it for your own benefit.  ;)
>>>
>>> -- bjs
>>>
>>> On Tue, May 26, 2015 at 12:28 PM, Bryan J Smith <b.j.smith@ieee.org>
>>> wrote:
>>>>
>>>> On Tue, May 26, 2015 at 9:41 AM, Beartooth via Novalug
>>>> <novalug@firemountain.net> wrote:
>>>>>
>>>>> On Tue, 26 May 2015, greg pryzby via Novalug wrote:
>>>>> [....]
>>>>>>
>>>>>>
>>>>>> I am asking before searching because I have learned, if I ask I will
>>>>>> find
>>>>>> the answer quicker :P
>>>>>
>>>>>
>>>>>         That's my license to ask: how do I fix my root password on a
>>>>> laptop
>>>>> running Fedora 21?
>>>>>
>>>>>         I've tried typing it elsewhere and using c&p; no joy; it really
>>>>> is
>>>>> messed up, holy Klono's cyber-sidekick knows how, when, etc.
>>>>>
>>>>>         I've tried rebooting and choosing rescue mode instead of a
>>>>> normal
>>>>> kernel; but I just get a normal kernel and normal login splash anyhow.
>>>>>
>>>>>         But I've forgotten the classic method to boot to single user
>>>>> ....
>>>>
>>>>
>>>> You must interrupt normal boot inside of Dracut (initramfs aka initrd).
>>>>
>>>> Use one of the "rd.break" command-line options.
>>>>
>>>> rd.break=[cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup]
>>>>
>>>> If you not familiar with Dracut, or the purpose of the initramfs, it
>>>> is the small root image that loads to support the system boot, kernel
>>>> modules, storage organization, etc... so the actual, run-time storage
>>>> can be loaded.  The latter is then "switched to" ("pivot root") at the
>>>> end of Dracut.
>>>>
>>>> The rd.break image is a _powerful_ solution that loads a lot of the
>>>> required support to boot, and will _prevent_ you from screwing up any
>>>> complex storage organization, unlike a Live image (let alone one from
>>>> another distro).  This solution is not limited to Fedora, although
>>>> many distros have not implemented most of Dracut's advanced
>>>> capabilities like Fedora-based or SuSE-based distros.
>>>>
>>>> -- bjs
>>>>
>>>> P.S.  Please do _not_ use "init=/bin/boot".  That has always been a
>>>> _dangerous_ solution due to not loading the required storage
>>>> organization that some systems require, and can result in data loss or
>>>> a screwed up boot (especially if you try to change boot portions).
>>>> The new Dracut rd.break solution that several distros now implement is
>>>> much, much safer, as it provides an environment for the system as
>>>> deployed.
>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Bryan J Smith - http://www.linkedin.com/in/bjsmith
>>> **********************************************************************
>>> The Novalug mailing list is hosted by firemountain.net.
>>>
>>> To unsubscribe or change delivery options:
>>> http://www.firemountain.net/mailman/listinfo/novalug
>>>
>>
>
>
>
> --
> --
> Bryan J Smith - http://www.linkedin.com/in/bjsmith
> **********************************************************************
> The Novalug mailing list is hosted by firemountain.net.
>
> To unsubscribe or change delivery options:
> http://www.firemountain.net/mailman/listinfo/novalug



More information about the Novalug mailing list