wip
This commit is contained in:
parent
8292892021
commit
cc3834f211
2 changed files with 73 additions and 1 deletions
21
entry.sh
21
entry.sh
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source $(dirname $0)/utils.sh
|
||||
|
||||
function first_stage(){
|
||||
echo foo first_stage
|
||||
echo creating image file
|
||||
|
|
@ -16,12 +18,29 @@ function first_stage(){
|
|||
) | fdisk ${LODEV}
|
||||
losetup -d ${LODEV}
|
||||
LODEV=$(losetup --show -fP /root/disk.img)
|
||||
lsblk
|
||||
|
||||
echo using device $LODEV
|
||||
echo mount divice to $TARGET
|
||||
mount $LODEVp1 $TARGET
|
||||
echo debootstrap sid $TARGET
|
||||
|
||||
}
|
||||
|
||||
function second_stage(){
|
||||
echo bar second_stage
|
||||
}
|
||||
|
||||
function test_fun(){
|
||||
#choose_one test1 | prefix_time
|
||||
#sleep 1
|
||||
block_devices | choose_one -
|
||||
echo "> "$test
|
||||
#sleep 1
|
||||
#choose_one | prefix_time
|
||||
}
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
if [ $1 = "test" ]; then
|
||||
test_fun
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue