]> git.ipfire.org Git - thirdparty/util-linux.git/commit
switch_root: verify initramfs by f_type, not devno
authorDave Reisner <dreisner@archlinux.org>
Wed, 2 Apr 2014 14:41:30 +0000 (10:41 -0400)
committerKarel Zak <kzak@redhat.com>
Fri, 4 Apr 2014 12:55:13 +0000 (14:55 +0200)
commitc7832fb8f122f08b10bc6712f1062295a239bd06
treec2158e49db227662bf4a176a0c65e9edd8894d1e
parentc8302069314f5cc5b3d28517adad1f905577aea1
switch_root: verify initramfs by f_type, not devno

As of linux 3.14, the initramfs device will have both major and
minor 0, causing our paranoia check to fail. Make this version agnostic
by checking the filesystem type, rather than a device number.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
sys-utils/switch_root.c