]> git.ipfire.org Git - thirdparty/util-linux.git/commit
switch_root: Add a sanity check
authorRichard Weinberger <richard@nod.at>
Sat, 9 Feb 2013 18:22:50 +0000 (19:22 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Feb 2013 13:55:30 +0000 (14:55 +0100)
commit07de470e437f204e3d40b8b0a85f57c1978ff9ed
tree6cd85fe6dd4c3148843bf5af03e2503c0493cdc1
parent456857a49ab02d6f4b5be4884ec050f6b572f62b
switch_root: Add a sanity check

As switch_root basically does rm -Rf / we should make sure
that / is really an initramfs.

Signed-off-by: Richard Weinberger <richard@nod.at>
sys-utils/switch_root.c