[qubes-users] sudo dracut --force ???

I’m running Qubes off a Crucial m4 256Gig SSD mSata (Thinkpad x230). It recently slowed, and I’m suspecting that the SSD needs a good “trim”. I’m following the instructions at http://blog.christophersmart.com/2013/06/05/trim-on-lvm-on-luks-on-ssd/ . Some of the steps are reasonable:

  • Adding “discard” to “/”'s ext4 entry in /etc/fstab
  • Adding “allow-discard” to the luks entry in /etc/crypttab
  • Adding issue_discards = 1 to /etc/lvm/lvm.conf

But now I need to recreate initramfs with something like the following, but it scares me.

  • sudo dracut --force -I /etc/crypttab

Is this safe/proper? Is there documentation telling how to recreate Qubes’ initramfs?

Many thanks!

Marshall

p.s. I’m more concerned about my laptop being decrypted if lost/stolen (rather than an adversary taking repeated snapshots) and am OK with the security downside of SSD trim.
``

1 Like

Yes, this is the standard way of using dracut. Without --force, it will simply
refuse to create initramfs if already exists.

1 Like

Thanks! Other than backing up
/boot/initramfs-3.7.6-2.pvops.qubes.x86_64.img, is there anything else
I should do to minimize the risk of my doing something horrible?

Thanks again!

Marshall

1 Like

This is the only file which dracut modify.

1 Like