Opened 10 years ago

Closed 10 years ago

#501 closed defect (fixed)

Generate minirt on the fly

Reported by: skylar Owned by: skylar
Priority: major Milestone:
Component: Both Version:
Keywords: Cc:
Blocked By: Blocking:
Estimated Hours: 3 Total Hours: 3.75

Description

allow for use of VCS to manage the files inside

Change History (11)

comment:1 Changed 10 years ago by skylar

  • Status changed from new to assigned

need to generate list of device nodes to create

comment:2 Changed 10 years ago by skylar

probably should put device nodes in a config file (YAML?)

comment:3 Changed 10 years ago by skylar

script to make yaml file

ls -l /mnt/loop/dev/|awk '{printf("%s:\n\t\tmajor: %d\n\t\tminor: %d\n",$9,$5,$6);}'

comment:4 Changed 10 years ago by skylar

even better

find /mnt/loop/dev/ -type b -o -type c -print0|xargs -0 ls -l|awk '{printf("%s:\n\t\tmajor: %d\n\t\tminor: %d\n",$9,$5,$6);}'

comment:5 Changed 10 years ago by skylar

use spaces instead of tabs for yaml, capture device type

find /mnt/loop/dev/ -type c -o -type b -print0|xargs -0 ls -l|awk '{gsub(/\/mnt\/loop/,"",$9); printf("%s:\n major: %d\n minor: %d\n type: %c\n",$9,$5,$6,substr($1,1,1));}'

comment:6 Changed 10 years ago by skylar

  • Estimated Hours changed from 1 to 3

created configuration file, still need to write code to create the minirt itself

comment:7 Changed 10 years ago by skylar

mknod working, now need to generate minirt.gz

comment:8 Changed 10 years ago by skylar

following ubuntu

comment:9 Changed 10 years ago by skylar

oops, wrong ticket

comment:10 Changed 10 years ago by skylar

merging in r2387

comment:11 Changed 10 years ago by skylar

  • Resolution set to fixed
  • Status changed from assigned to closed

updated the wiki

Note: See TracTickets for help on using tickets.