Re: mkinitcpio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Mar 2, 2012 at 10:07 AM, Simon Perry <arch@xxxxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux