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

Re: Removing hardware identifiers from an existing installation (esp. Grub2)

On Mon, Feb 20, 2012 at 12:30 AM, Jason Heeris <jason.heeris@gmail.com> wrote:
> A while ago I installed Emdebian (Squeeze) to a compact flash card on a
> single board computer. I had not anticipated this, but now I'd like to take
> that installation and replicate it on other identical flash cards on other
> identical SBCs.
> (If I *had* anticipated this, I might have put a live system on the drive,
> but that's plan C.)
> Of course, when I say "identical", in fact the UUID of the drives differ
> every time. This is a problem for Debian, since it uses drive UUIDs in the
> Grub2 configuration, in /etc/fstab and maybe even elsewhere.
> I've fixed /etc/fstab to do what I want, so now my question is: how do I get
> Grub2 to stop using UUIDs? In particular, the line:
>     search --no-floppy --fs-uuid --set [UUID here]
> I've already fixed this line in /etc/default/grub:
> ...but is there some other place to turn off the UUID searching?
> In a more general sense, are there any other gotchas I might have to look
> for here, where a Debian installation is tied to drive UUIDs, network
> adapter MAC addresses, or any variable hardware identifiers?

Never having used Emdebian, I can only give some Debian answers and
they'll hopefully be usable.

For filesystem UUIDs, I wouldn't use "GRUB_DISABLE_LINUX_UUID="true"".
I'd change the new flash card's UUIDs with tune2fs and mkswap to match
the copied/cloned "/etc/fstab".

For NIC MAC addresses, you have to delete
"/etc/udev/rules.d/70-persistent-net.rules" and it'll be recreated
with a reboot or with "echo add > /sys/class/net/eth0/uevent".

If your original has a fixed IP address, ...

You can also change the hostname but you don't need to do so.

Reply to: