Commit Graph

12 Commits

Author SHA1 Message Date
3d63eecb8d tools.c: refactored verify_ramdisk_digest()
This consists of several changes at once:
- purged unneccessary variables;
- fixed variable and function types;
- more readable return values;
- improved error logging;
- optimized hash printout just in case.

The original version of this patch fixed an off-by-one
issue too (it's been committed separately now).
2014-04-23 01:45:56 +04:00
Michael Shigorin
8d2cd5aec8 initial verify_ramdisk_digest()
This is a patch by Maxim Suhanov <suhanov/group-ib.ru>
aiming to provide integrity and authenticity check for
stage2 rootfs image when required:

- media bootloader passes sha256 hash of stage2 image;
- stage1 early userspace code (that is, propagator)
  checks the candidate files against that during search;
- existing file with different checksum results in a warning
  with a dialog to just say NO, continue searching for the
  proper squashfs image and have a look at that weird one;
- existing file with correct checksum results in booting
  as usual.

The check is triggered by "hash=..." kernel boot parameter.

See also http://www.forensicswiki.org/wiki/Forensic_Live_CD_issues
2014-04-19 12:49:58 +04:00
Anton V. Boyarshinov
9728339b03 plymouth support improoved 2010-11-30 22:14:42 +03:00
Anton V. Boyarshinov
5379a6c482 basic plymouth support 2010-11-22 19:56:35 +03:00
Anton V. Boyarshinov
3d2e77074f tty3 creation
waiting /dev/disk added
2010-11-20 19:20:08 +03:00
Andriy Stepanov
20cf255d7b parse `init=' parameter 2009-07-01 15:17:05 +04:00
Sergey Bolshakov
48d26b2d15 - cleaned up 2007-03-03 00:48:18 +03:00
Sergey Bolshakov
1d2720df30 made things working:
- ramdisk name calculating
- lowmem parameter, ramdisk will not be loaded, if specified
- stagename parameter appeared, eq "altinst" if not specified
2005-03-05 15:26:22 +00:00
Sergey Bolshakov
d62b45ce1a propagate env from stage1 further 2005-01-21 13:52:04 +00:00
Sergey Bolshakov
68463187b0 'disk' install method fixed.
WARNING: proto changed: get_ramdisk_path(char *)
2004-12-12 22:22:50 +00:00
Anton Farygin
8e45f2d2e5 use cloop images for stage2
removed method live (use parameter live for detection stage2 filesystem image)
2004-11-30 11:47:57 +00:00
Anton Kachalov
46438969c6 Initial revision 2004-01-20 18:32:43 +00:00