-
Notifications
You must be signed in to change notification settings - Fork 0
/
Examples-boot-codes.txt
107 lines (76 loc) · 4.42 KB
/
Examples-boot-codes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Update 2020-06-291818, added the +EXIT parameter for porteus-boot, see info and example below.
BusterDog is very small Debian Live CD
It is not based on Debian but pure Debian Live linux.
It is made to be small and look like Puppy linux with similar tools and options,
without changing anything in Debian structure.
We use 2 different initrd files to boot the system. This makes the different save file options.
Two boot methods available:
1. BusterDog 'boot style Porteus' - porteus initrd1.xz made for debian kernel and firmware. + encrypted save file option.
(recommended if you are familiar with puppy or porteus boot options)
2. BusterDog live-boot-3x - debian initrd.img created with initramfs-tools-v3.x. + encrypted save file/partition option.
Make your boot choice and you can delete one initrd file to save space from the iso size.
==========================================================================================
Boot code examples (grub(4dos) after extracting /live folder from the iso on top of sda1:
==========================================================================================
1. BusterDog 'boot style Porteus' (recommended if you are familiar with puppy or porteus boot options)
Buster Live CD using porteus boot method (very similar to Puppy linux boot and save options).
The initrd1.xz file is edited from Fred for use only with BusterDog.
It is not the exact Porteus boot method since it uses .squashfs modules extention instead .xzm
and /live instead /porteus folder, but the save file options are the same as in Porteus.
You can skip from=/ in the kernel boot line but it is better to keep it this way.
For example if folder /live is inside folder /deb you need to use from=/deb/
This will create automatically /live/changes folder for changes:
Code:
title Buster-PorteusDog (sda1)
root (hd0,0)
kernel (hd0,0)/live/vmlinuz1 noauto from=/ changes=/live/
initrd (hd0,0)/live/initrd1.xz
This need to be created "changes.dat" (or whatever custom name) savefile first for saving changes:
Code:
title Buster-PorteusDog (sda1)
root (hd0,0)
kernel (hd0,0)/live/vmlinuz1 noauto from=/ changes=/live/changes.dat
initrd (hd0,0)/live/initrd1.xz
This way of saving changes is equivalent of "pupmode=13" in puppy , saving changes only at shutdown:
Code:
title Buster-PorteusDog (sda1)
root (hd0,0)
kernel (hd0,0)/live/vmlinuz1 noauto from=/ changes=EXIT:/live/changes.dat
initrd (hd0,0)/live/initrd1.xz
Note for last example: there will be prompt for save or not to save. Also for prompt to create savefile first time boot.
Like the previous one saving changes only at shutdown but in folder changes:
Code:
title Buster-PorteusDog (sda1)
root (hd0,0)
kernel (hd0,0)/live/vmlinuz1 noauto from=/ changes=EXIT:/live/
initrd (hd0,0)/live/initrd1.xz
When using +EXIT the temporarily changes will NOT run in memory, which can be an advantage, specially when you have small amount of RAM.
(with the "normal" EXIT: configuration, the amount of space in / is limited to 60% (default) of the amount of RAM you have).
A folder "tmp-changes" in "live" wiil be created and will be written to the save storage on demand (e.g. by running save2flash or choosing Save at shutdown), example for savefolder:
Code:
title Buster-PorteusDog (sda1)
root (hd0,0)
kernel (hd0,0)/live/vmlinuz1 noauto from=/ changes=+EXIT:/live/
initrd (hd0,0)/live/initrd1.xz
Porteus-boot code does not need anything special added for encrypted save file.
2. BusterDog live-boot-3x
Buster Live CD using live-boot version 3.x. Debian (Wheezy, Jessie, SID) boot method.
To save changes you need to create save file persistence or ext partition with label persistence
+ adding persistence.conf file inside.
Read more about live-boot-3x code options here:
http://live-systems.org/manpages/stable/en/html/live-boot.7.html
You need to have persistence in kernel boot line otherwise no save file will be used.
Code:
title BusterDog live-boot-3x (sda1)
root=(hd0,0)
kernel /live/vmlinuz1 boot=live config persistence swapon quickreboot noeject showmounts union=aufs
initrd /live/initrd.img
boot
Encrypted save file boot code example:
Code:
title BusterDog live-boot-3x (sda1)- encrypted save file inside /live
root=(hd0,0)
kernel /live/vmlinuz1 boot=live config swapon quickreboot noeject showmounts persistence persistence-path=/live/ persistence-encryption=none,luks union=aufs
initrd /live/initrd.img
boot
=====================================================================================