You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ubuntu/noble
ubuntu/jammy
ubuntu/master
ubuntu/oracular
ubuntu/focal
tweak-core-desktop
ubuntu-core-lxd-qcow2
intel-iot-tests
ubuntu/mantic
ubuntu-core-desktop-noble
ubuntu-core-desktop
intel-iot-changes
allwinner-kernel-jammy
noble-64k
jammy-64k
jammy-pi-fix
use-lxd-installer-jammy
ubuntu/lunar
use-lxd-installer-lunar
use-lxd-installer
ubuntu/xenial
ubuntu/bionic
jammy-sru-1996489
lunar-sru-1996489
canary-as-default
xnox/mksquashfs-zstd
meta-squash-fs
canary-locale
ubuntu-cloud-minimal-tmp
xnox/deprecate-kvm
xnox/virtual-armhf
add-new-budgie
ui-by-default
ui-by-default-debug
apt-workaround-list-add
always-enable-i386
losetup-not-kpartx
lunar
fix-netboot-tarballs
canary-build
ui-by-default-wip
quick-hack-for-apt-cache
tune2fs
add-server-hwe
ubuntu/kinetic
canary-new-desktop
raspi-right-components
master-cpc-sshd-config-d-lp1968873
intel-iotg-server-jammy
fix-riscv64-no-subarch
lp.1981109
default-compat
jammy-iotg-bump
focal-iotg-bump
add-buildd-aarch64
ubuntu/impish
pi-desktop-one-gadget
origin/drop-lupin-casper
docker-disable-apt-periodic
fix-kassel
no-base-snaps-for-base-snaps
feature/ubuntu-impish-fix-armhf-disk-image-size-bug-1953609
impish
iotg-multiverse
master-bump-armhf-uefi-disk-image-size
ubuntu/hirsute
fix-resize-and-warning
customization-typo
desktop-preinstalled-fixes
impish-sru-lp-1946520
bdmurray/focal-intel-iot
bdmurray/intel-iot-models
bdmurray/iotg
sil2100/riscv-unmatched-unleashed
canary-new-installer
ubuntu/groovy
use-right-naming
delete-obsolete-ubuntu-core
raspi-server-seed
raspi-settings-hack
sil2100/hwe-enable-desktops
sil2100/proposed-components
sil2100/raspi-server
sil2100/appliance-qcow2
uc20-no-fixed-size
pi-desktop-swapfile
raspi-desktop-1
rpi-eeprom-dep
wip/ubuntu/focal/studio
sil2100/appliance-images
appliance-channel
arbitrary-model-names
ubuntu/eoan
xnox/lxd-add-riscv64
xnox/focal-sru-2.664.1
xnox/riscv64
xnox/fix-pi-models
xnox/lp-uc20-8gb
bugfix/snapd_for_core18-eoan
xnox/risc64
rolling-from-GA
rcj/test
fix-raspi-gadgets
u-i-disk-info
oem-2004-is-oem
bionic-1855354
xenial-1855354
ubuntu/trusty
ubuntu/disco
sil2100/backport-datasource-raspi3
xnox/linux-firmware
xnox/lazy-modules
amd64-kernel-on-i386
u-i-cloud-init
core-include-dmsetup
snap-manifests
sil2100/raspi-generic
sil2100/enable-universe-none
ubuntu/cosmic
uc18-kassel
snap-tool-base-none
sil2100/core18-pi3-arm64
sil2100/raspi-wpasupplicant
ubuntu/artful
ubuntu/precise
ubuntu/yakkety
ubuntu/zesty
25.04.7
25.04.6
25.04.5
2.765.53
24.04.81
24.04.80
24.10.28
25.04.2
2.765.52
24.04.79
25.04.1
24.10.27
24.10.26
24.10.25
24.10.24
24.10.23
24.10.22
24.10.21
24.10.20
24.10.19
24.10.18
24.10.17
2.765.50
24.10.16
24.10.15
2.765.49
24.10.14
2.765.48
2.765.47
24.10.13
24.10.12
24.04.77
24.10.11
24.10.10
24.04.76
24.10.9
24.04.75
2.765.46
2.765.45
24.10.8
24.04.74
24.10.7
24.10.6
24.04.73
24.10.5
2.828.2
23.10.56
23.10.59
23.10.60
2.664.51
2.664.53
2.765.29
2.765.30
2.765.37
2.765.41
2.765.42
24.04.70
24.04.71
24.04.72
24.04.63
24.04.43
24.04.41
24.10.2
24.10.1
24.10.4
24.10.3
2.765.43
24.04.69
24.04.68
24.04.67
24.04.66
24.04.65
24.04.64
24.04.62
24.04.61
24.04.60
24.04.59
24.04.58
24.04.56
24.04.55
24.04.54
24.04.53
24.04.52
24.04.51
24.04.50
24.04.49
24.04.48
24.04.47
24.04.46
24.04.45
24.04.44
24.04.39
2.765.40
2.765.39
24.04.38
24.04.37
24.04.36
24.04.35
24.04.34
24.04.33
24.04.32
24.04.31
24.04.30
24.04.29
24.04.27
24.04.26
debian/2.664.52
24.04.24
24.04.23
2.765.38
24.04.22
24.04.21
24.04.20
2.765.36
24.04.19
2.765.35
24.04.18
2.765.34
2.828.4
24.04.17
24.04.16
24.04.15
23.10.58
24.04.14
24.04.13
24.04.11
24.04.10
24.04.9
24.04.8
2.828.3
2.765.31
24.04.7
24.04.5
24.04.4
24.04.3
24.04.1
debian/2.664.50
23.10.55
23.10.53
23.10.52
23.10.51
23.10.50
2.765.27
23.10.49
23.10.48
23.10.47
23.10.45
23.10.44
23.10.43
23.10.40
23.10.39
23.10.38
23.10.36
23.10.35
23.10.34
2.765.26
23.10.33
23.10.32
23.10.31
23.10.30
23.10.29
23.10.28
23.10.27
2.765.25
23.10.26
23.10.25
23.10.24
23.10.23
23.10.22
23.10.21
23.10.20
23.10.19
2.765.24
23.10.18
23.10.17
23.10.16
23.10.15
23.10.14
23.10.13
23.10.12
23.10.11
23.10.10
23.10.9
23.10.8
23.10.7
23.10.6
23.10.5
23.10.4
23.10.2
23.10.1
2.899
2.898
2.897
2.896
2.895
2.894
2.892
2.891
2.890
2.849
2.848
2.847
2.846
2.845
2.844
2.843
2.842
2.765.23
2.664.48
2.765.22
2.841
2.840
2.839
2.838
2.837
2.836
2.835
2.834
2.833
2.832
2.831
2.830
2.829
2.828
2.827
2.826
2.825
2.824
2.823
2.822
2.765.21
2.821
2.820
2.819
2.818
2.817
2.816
2.814
2.813
2.765.20
2.664.46
2.812
2.811
2.810
2.809
2.808
2.765.19
2.807
2.806
2.805
2.804
2.803
2.802
2.801
2.765.18
2.765.17
2.800
2.765.16
2.799
2.798
2.765.15
2.797
2.796
2.795
2.525.61
2.664.45
2.765.14
2.791.1
2.794
2.765.13
2.765.12
2.793
2.792
2.765.11
2.788
2.787
2.784
2.783
2.782
2.781
2.779
2.777
2.776
2.775
2.765.10
2.774
2.765.9
2.773
2.664.44
2.525.60
2.765.7
2.771
2.765.6
2.770
2.765.5
2.769
2.765.4
2.525.59
2.664.43
2.765.3
2.765.2
2.664.42
2.768
2.764.1
2.767
2.766
2.765
2.764
2.763
2.762
2.525.58
2.664.41
2.742.5
2.759
2.758
2.757
2.664.40
2.742.4
2.664.39
2.756
2.754
2.753
2.664.37
2.751
2.750
2.749
2.748
2.742.2
2.664.35
2.719.4
2.664.36
2.747
2.664.34
2.719.3
2.745
2.664.33
2.744
2.664.32
2.664.31
2.743
2.525.56
2.742
2.741
2.740
2.739
2.737ubuntu1
2.664.29
2.719.2
2.737
2.736
2.735
2.734
2.733
2.664.28
2.664.27
2.664.26
2.732
2.664.25
2.731
2.730
2.729
2.728
2.727
2.726
2.664.24
2.725
2.724
2.525.55
2.525.54
2.664.22
2.723
2.722
2.525.53
2.664.21
2.694.5
2.719.1
2.721
2.720
2.719
2.408.68
2.525.52
2.664.20
2.694.4
2.718
2.717
2.716
2.714
2.713
2.408.67
2.408.66
2.525.51
2.664.17
2.694.3
2.711
2.664.15
2.664.14
2.710
2.664.13
2.664.12
2.664.11
2.525.49
2.709
2.708
2.707
2.706ubuntu1
2.706
2.705
2.704
2.702
2.700
2.694.1
2.699
2.698
2.696
2.664.8
2.691
2.408.61
2.689
2.408.60
2.525.47
2.681
2.525.46
2.680
2.678
2.664.4
2.676
2.675
2.674
2.673
2.671
2.670
2.669
2.668
2.667
2.666
2.665
2.663
2.662
2.661
2.660
2.657
2.408.58
2.655
2.654
2.653
2.651
2.649
2.648
2.646
2.645
2.643
2.642
2.641
2.640
2.639
2.638
2.636
2.525.36
2.408.57
2.635
2.632
2.630
2.208.18
2.629
2.628
2.627
2.626
2.625
2.624
2.619
2.618
2.617
2.616
2.614
2.408.54
2.408.53
2.408.52
2.578.7
2.611
2.525.29
2.608
2.607
2.606
2.605
2.602
2.578.6
2.525.28
2.601
2.600
2.598
2.597
2.596
2.595
2.525.27
2.592
2.591
2.590
2.525.27_ppa3
2.588
2.408.49
2.578.5
2.525.26
2.542.5
2.587
2.578.4
2.586
2.542.4
2.408.47
2.525.25
2.578.3
2.585
2.525.24
2.408.46
2.584
2.583
2.582
2.525.23
2.542.3
2.578.2
2.581
2.525.22
2.525.21
2.542.2
2.578.1
2.580
2.579
2.578
2.575
2.574
2.573
2.572
2.571
2.525.20
2.569
2.568
2.567
2.566
2.565
2.564
2.408.44
2.525.19
2.563
2.562
2.525.17
2.408.43
2.560
2.559
2.557
2.553
2.542.1
2.552
2.551
2.550
2.540
2.9
2.333
2.351
2.358
2.359
2.367
2.368
2.381
2.382
2.387
2.39
2.394
2.40
2.402
2.403
2.408.34
2.408.5
2.409
2.41
2.414
2.42
2.438
2.47
2.56
2.67
1.107
1.108
1.112
1.119
1.124
1.130
2.11
2.16
2.17
2.18
2.197
2.230
2.245
2.306
0.30
0.31
0.32
0.33
0.34
0.35
0.36
0.37
0.38
0.39
0.40
0.41
0.42
0.43
0.44
0.45
0.46
0.47
0.48
0.49
0.50
0.51
0.52
0.53
0.54
0.55
0.56
0.57
0.58
0.59
0.60
0.61
0.62
0.63
0.64
0.65
0.66
0.67
0.100
0.101
0.68
0.69
0.70
0.71
0.72
0.73
0.74
0.75
0.76
0.77
0.78
0.79
0.80
0.81
0.82
0.83
0.84
0.85
0.86
0.87
0.88
0.89
0.90
0.91
0.92
0.93
0.94
0.95
0.96
0.97
0.98
0.99
1.102
1.103
1.104
1.105
1.106
1.109
1.110
1.111
1.114
1.115
1.116
1.117
1.118
1.120
1.121
1.122
1.123
1.125
1.126
1.127
1.128
1.129
1.131
1.132
1.133
1.134
1.135
1.136
1.137
1.138
1.139
1.140
1.141
1.142
1.143
1.144
1.145
1.146
1.147
1.148
1.149
1.150
1.151
1.152
1.153
1.154
1.155
1.156
1.157
1.158
1.159
1.160
1.161
1.162
1.163
1.164
1.165
1.166
1.167
2.0
2.1
2.10
2.100
2.101
2.102
2.103
2.104
2.105
2.106
2.107
2.108
2.109
2.110
2.111
2.112
2.113
2.114
2.115
2.116
2.117
2.118
2.119
2.12
2.120
2.121
2.122
2.123
2.124
2.125
2.126
2.127
2.128
2.129
2.13
2.130
2.131
2.132
2.133
2.134
2.135
2.136
2.137
2.138
2.139
2.14
2.140
2.141
2.142
2.143
2.144
2.145
2.146
2.147
2.148
2.149
2.15
2.150
2.151
2.152
2.153
2.154
2.155
2.156
2.157
2.158
2.159
2.160
2.161
2.162
2.163
2.164
2.165
2.166
2.167
2.168
2.169
2.170
2.171
2.172
2.173
2.174
2.175
2.176
2.177
2.178
2.179
2.180
2.181
2.182
2.183
2.184
2.185
2.186
2.187
2.188
2.189
2.19
2.190
2.191
2.192
2.193
2.194
2.195
2.196
2.198
2.199
2.2
2.20
2.200
2.201
2.202
2.203
2.204
2.205
2.206
2.207
2.208
2.208.1
2.208.10
2.208.11
2.208.12
2.208.13
2.208.14
2.208.15
2.208.17
2.208.2
2.208.3
2.208.4
2.208.5
2.208.6
2.208.7
2.208.8
2.208.9
2.209
2.209+unity8.1
2.209+unity8.2
2.21
2.210
2.211
2.212
2.213
2.214
2.215
2.216
2.217
2.218
2.219
2.22
2.220
2.221
2.222
2.223
2.224
2.225
2.226
2.227
2.228
2.229
2.23
2.231
2.232
2.233
2.234
2.235
2.236
2.237
2.238
2.239
2.24
2.240
2.241
2.242
2.243
2.244
2.246
2.247
2.248
2.249
2.25
2.250
2.251
2.252
2.253
2.254
2.255
2.256
2.257
2.258
2.259
2.26
2.260
2.261
2.262
2.263
2.264
2.265
2.266
2.267
2.268
2.269
2.27
2.270
2.271
2.273
2.274
2.275
2.275+ppa2
2.276
2.277
2.278
2.279
2.28
2.280
2.281
2.282
2.283
2.284
2.285
2.286
2.287
2.288
2.289
2.29
2.290
2.291
2.292
2.293
2.294
2.295
2.296
2.297
2.298
2.299
2.3
2.30
2.300
2.301
2.302
2.303
2.304
2.305
2.307
2.308
2.309
2.31
2.310
2.311
2.312
2.313
2.314
2.315
2.316
2.317
2.318
2.319
2.32
2.320
2.322
2.323
2.324
2.325
2.326
2.327
2.328
2.329
2.33
2.330
2.331
2.332
2.334
2.335
2.336
2.338
2.339
2.34
2.340
2.341
2.342
2.343
2.344
2.345
2.346
2.347
2.348
2.349
2.35
2.350
2.352
2.353
2.354
2.355
2.356
2.357
2.36
2.360
2.361
2.362
2.363
2.364
2.365
2.366
2.369
2.37
2.370
2.371
2.372
2.373
2.374
2.375
2.376
2.377
2.378
2.379
2.38
2.380
2.383
2.384
2.385
2.386
2.388
2.389
2.390
2.391
2.392
2.393
2.395
2.396
2.397
2.398
2.399
2.4
2.400
2.401
2.404
2.405
2.406
2.407
2.408
2.408.1
2.408.10
2.408.11
2.408.12
2.408.13
2.408.14
2.408.15
2.408.16
2.408.17
2.408.18
2.408.19
2.408.2
2.408.20
2.408.21
2.408.22
2.408.23
2.408.24
2.408.25
2.408.26
2.408.27
2.408.28
2.408.29
2.408.3
2.408.30
2.408.31
2.408.32
2.408.33
2.408.35
2.408.36
2.408.37
2.408.38
2.408.39
2.408.4
2.408.40
2.408.41
2.408.42
2.408.45
2.408.48
2.408.50
2.408.51
2.408.55
2.408.56
2.408.59
2.408.62
2.408.63
2.408.64
2.408.65
2.408.7
2.408.8
2.408.9
2.410
2.411
2.412
2.413
2.415
2.416
2.417
2.418
2.419
2.420
2.421
2.422
2.423
2.424
2.425
2.426
2.427
2.428
2.429
2.43
2.430
2.431
2.432
2.433
2.434
2.435
2.435.1
2.435.2
2.435.3
2.435.4
2.436
2.437
2.439
2.44
2.440
2.441
2.441.1
2.441.10
2.441.2
2.441.3
2.441.4
2.441.5
2.441.6
2.441.7
2.441.8
2.441.9
2.442
2.443
2.444
2.445
2.446
2.447
2.448
2.449
2.45
2.450
2.451
2.452
2.453
2.454
2.455
2.456
2.457
2.458
2.459
2.46
2.460
2.461
2.462
2.463
2.464
2.465
2.466
2.467
2.468
2.469
2.470
2.471
2.472
2.473
2.474
2.475
2.476
2.477
2.478
2.478.1
2.479
2.48
2.480
2.481
2.482
2.483
2.484
2.485
2.486
2.487
2.488
2.489
2.49
2.490
2.491
2.492
2.493
2.494
2.495
2.496
2.497
2.498
2.499
2.5
2.50
2.500
2.501
2.502
2.503
2.504
2.505
2.506
2.507
2.508
2.509
2.51
2.510
2.511
2.512
2.513
2.514
2.515
2.516
2.517
2.518
2.519
2.52
2.520
2.521
2.522
2.523
2.524
2.525
2.525.1
2.525.10
2.525.11
2.525.12
2.525.13
2.525.14
2.525.15
2.525.16
2.525.18
2.525.2
2.525.3
2.525.30
2.525.31
2.525.32
2.525.33
2.525.34
2.525.35
2.525.37
2.525.38
2.525.39
2.525.4
2.525.40
2.525.41
2.525.42
2.525.43
2.525.44
2.525.45
2.525.48
2.525.5
2.525.50
2.525.6
2.525.7
2.525.8
2.525.9
2.526
2.527
2.528
2.529
2.53
2.530
2.531
2.532
2.533
2.534
2.535
2.536
2.537
2.538
2.539
2.54
2.541
2.542
2.543
2.544
2.545
2.546
2.547
2.548
2.549
2.55
2.554
2.555
2.556
2.558
2.561
2.57
2.570
2.576
2.577
2.578.10
2.578.8
2.578.9
2.58
2.589
2.59
2.593
2.594
2.599
2.6
2.60
2.603
2.604
2.61
2.610
2.612
2.613
2.615
2.62
2.620
2.620.1
2.620.2
2.620.3
2.621
2.622
2.623
2.63
2.631
2.633
2.634
2.637
2.64
2.644
2.647
2.65
2.65.1
2.65.10
2.65.11
2.65.12
2.65.13
2.65.2
2.65.3
2.65.4
2.65.5
2.65.6
2.65.7
2.65.8
2.65.9
2.650
2.652
2.656
2.658
2.659
2.66
2.664
2.664.1
2.664.10
2.664.16
2.664.18
2.664.18.1
2.664.18.2
2.664.19
2.664.2
2.664.23
2.664.3
2.664.47
2.664.49
2.664.5
2.664.54
2.664.6
2.664.7
2.664.9
2.672
2.677
2.679
2.68
2.682
2.683
2.684
2.685
2.686
2.687
2.688
2.69
2.690
2.692
2.693
2.694
2.694.2
2.694.6
2.695
2.697
2.7
2.70
2.701
2.703
2.71
2.712
2.715
2.72
2.73
2.738
2.74
2.742.1
2.75
2.752
2.76
2.760
2.761
2.765.44
2.765.51
2.765.54
2.765.8
2.77
2.78
2.780
2.79
2.8
2.80
2.81
2.82
2.83
2.84
2.85
2.86
2.87
2.88
2.89
2.893
2.90
2.91
2.92
2.93
2.94
2.95
2.96
2.97
2.98
2.99
23.10.3
23.10.37
23.10.41
23.10.42
24.04.12
24.04.2
24.04.25
24.04.28
24.04.57
24.04.6
24.04.77.1
24.04.78
24.04.82
25.04.3
25.04.4
${ item.name }
${ noResults }
69 lines
2.9 KiB
69 lines
2.9 KiB
# TL;DR
|
|
|
|
In order to generate the hooks for a specific image target set, call the
|
|
`make-hooks` script, located in `hooks.d` as
|
|
|
|
./make-hooks --hooks-dir ../hooks <image_set>
|
|
|
|
where `image_set` is the name of a series file (e.g. "vagrant") without leading
|
|
path components. Do *not* check in the `hooks` folder, it is automatically
|
|
generated by `auto/config` during Live Build runs.
|
|
|
|
|
|
# Hook placement and ordering
|
|
|
|
Scripts live in subfolders below the `hooks.d` folder. Currently the folders
|
|
`chroot` and `base` exist. The folder with the name `extra` is reserved for
|
|
private scripts, which are not included in the source of livecd-rootfs. The
|
|
scripts are not numbered, instead the order of their execution depends on the
|
|
order in which they are listed in a *series* file.
|
|
|
|
Series files are placed in subfolders `hooks.d/base/series` or
|
|
`hooks.d/extra/series`. Each series file contains a list of scripts to be
|
|
executed. Empty lines and lines starting with a `#` are ignored.
|
|
|
|
Series files in `extra/series` override files in `base/series` with the same
|
|
name. For example, if a series file `base/series/cloudA` exists and a series
|
|
file `extra/series/cloudA`, then the latter will be preferred.
|
|
|
|
A series file in `extra/series` may also list scripts that are located in the
|
|
`chroot` and `base` folders. In addition, series files can *depend* on other
|
|
series files. For example, the series files for most custom images look similar
|
|
to this:
|
|
|
|
depends disk-image
|
|
depends extra-settings
|
|
extra/cloudB.binary
|
|
|
|
Where `disk-image` and `extra-settings` may list scripts and dependencies which
|
|
are to be processed before the script `extra/cloudB.binary` is called.
|
|
|
|
ACHTUNG: live build runs scripts with the suffix ".chroot" in a batch separate
|
|
from scripts ending in ".binary". Even if you arrange them interleaved in your
|
|
series files, the chroot scripts will be run before the binary scripts.
|
|
|
|
# Image set selection for Live Build
|
|
|
|
During a Live Build, enumerated symbolic links are generated based on the
|
|
contents of one or more series files. The series files are selected according
|
|
to the contents of the `IMAGE_TARGETS` environment variable. For example, in
|
|
order to trigger the build of `squashfs` and `vagrant`, list them in the
|
|
`IMAGE_TARGETS` variable as `squashfs,vagrant`. The separator can be a comma,
|
|
a semi-colon or whitespace.
|
|
|
|
The generation of the symbolic links is triggered from the `auto/config` script,
|
|
from where the contents of the `IMAGE_TARGETS` environment variable are passed
|
|
on to the `make-hooks` script.
|
|
|
|
|
|
# Symlink generation
|
|
|
|
Since Live Build itself does not know about series files, a traditional `hooks`
|
|
folder is generated using the `make-hooks` script. The script takes as arguments
|
|
the names of the series files to be processed.
|
|
|
|
The script parses the series files and generates enumerated symbolic links for
|
|
all entries. Per default, these are placed into a directory named `hooks` next
|
|
to the `hooks.d` directory. This can be changed using the `--hooks-dir`
|
|
parameter.
|