[arch-general] mkinitcpio

C Anthony Risinger anthony at xtfx.me
Fri Mar 2 11:18:13 EST 2012


On Fri, Mar 2, 2012 at 10:07 AM, Simon Perry <arch at sanxion.net> wrote:
> On 02/03/12, C Anthony Risinger wrote:
>
> | i guess you missed the "make a backup copy of your old
> | initramfs-linux.img" part?  you should have been able to simply edit
> | you bootloader on the fly, and use the old copy.
>
> Yep, dumb mistake. :(
>
> Forgot to put it in /boot ...

as a simple pointer, i tend to do stuff like this:

(backup)
# cp /boot/initramfs-linux.img{,.orig}

(restore)
# cp /boot/initramfs-linux.img{.orig,}

... you can also use `mv` for the latter ... just make sure comma is
on the correct side for what you want done.

these just use bash's string expansion (the first of all expansions) to execute:

# cp /boot/initramfs-linux.img /boot/initramfs-linux.img.orig

... and

# cp /boot/initramfs-linux.img.orig /boot/initramfs-linux.img

... respectively.  i make backups so often that i should really have a
little alias or something ... then again, `cp` does backups itself,
maybe should leverage that, meh.

-- 

C Anthony


More information about the arch-general mailing list