GithubHelp home page GithubHelp logo

fairdk / lcrs-embedded Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 471 KB

LCRS embedded components - "slave" + embedded linux kernel

Home Page: https://lcrs.fairdanmark.dk/

License: GNU General Public License v3.0

Makefile 1.95% Python 95.92% Shell 1.54% HTML 0.59%
green-ict green-it reuse

lcrs-embedded's People

Contributors

benjaoming avatar jvilladsen avatar piratepieter avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lcrs-embedded's Issues

Fetch S.M.A.R.T. data with `smartctl` info during scan

system.smartctl.smartinfo collects information from the smartctl command.

  1. Check if SMART is available and enabled
  2. If not enabled, enable it and re-check if it's enabled. Fail in case it can't be enabled
  3. Add to ScanResult instance:
    1. Duration of short self test
    2. If ATA Secure Erase is available

Implement overwrite process

Once #3 is solved, we should be ready to overwrite drives.

(Step zero: Receives a request and generates a new job_id for which the overwrite job progress and results will be collected and store)

  1. Gather a "before" sample of data from random sector, store it in the results
  2. Perform SMART self test if available
  3. Perform ATA Secure Erase if available
  4. Fallback to classic wipe 1-pass with zeros if ATA Secure Erase is unavailable
  5. Make sure to store progress for current job
  6. Sample "after" data (same sample area as "before" data), store it in the results, verify that zeros are read out!

Have lcrs_embedded installed in Buildroot

In LCRS2, we ran our own script after building the output. It is run before building the actual images.

The script did this:
https://github.com/fairdk/lcrs2/blob/master/buildroot/postbuild.sh

Perhaps this is still the best and most flexible option. But it should ideally invoke python setup.py sdist to pack an actual distributed version of lcrs-embedded and then pip install it into a complete virtual environment of the host target with all dependencies?

Another option would be if there's somehow already a recipe for installing custom python packages and dependencies on a target system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.