Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipstick
Commits
159f30e3
Commit
159f30e3
authored
3 years ago
by
zraktvor
Browse files
Options
Downloads
Patches
Plain Diff
add some optional debugging to lip-early.sh
parent
03aa1b21
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
preseed/lip-early.sh
+19
-0
19 additions, 0 deletions
preseed/lip-early.sh
with
19 additions
and
0 deletions
preseed/lip-early.sh
+
19
−
0
View file @
159f30e3
#!/bin/sh
#!/bin/sh
## ARGS
IS_DEBUG
=
0
## SCRIPT
debug
()
{
if
[
"
$IS_DEBUG
"
=
"1"
]
;
then
"
$@
"
fi
}
# in earlier releases (but not in kubuntu 22.04), this mount was done automatically
# in earlier releases (but not in kubuntu 22.04), this mount was done automatically
mkdir
-p
/root/isodevice
mkdir
-p
/root/isodevice
mount /dev/disk/by-label/LIPSTICK /root/isodevice
mount /dev/disk/by-label/LIPSTICK /root/isodevice
...
@@ -8,6 +20,13 @@ echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives-$(sed -n 's/DIST
...
@@ -8,6 +20,13 @@ echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives-$(sed -n 's/DIST
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-security main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-security main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-updates main restricted universe multiverse"
>>
/root/etc/apt/sources.list
echo
"deb http://ftp.halifax.rwth-aachen.de/ubuntu/
$(
sed
-n
's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p'
/root/etc/lsb-release
)
-updates main restricted universe multiverse"
>>
/root/etc/apt/sources.list
debug
echo
"As far as I know, there are no logs of anything, which is run in casper. So I sleep here, allowing me to view potential errors ..."
debug
sleep
30
chroot
/root /usr/bin/apt-get update
chroot
/root /usr/bin/apt-get update
chroot
/root /usr/bin/apt-get
-y
install
$(
grep
'^[^|#]*L[^|]*|'
/root/isodevice/packages |
cut
-d
'|'
-f
2
)
chroot
/root /usr/bin/apt-get
-y
install
$(
grep
'^[^|#]*L[^|]*|'
/root/isodevice/packages |
cut
-d
'|'
-f
2
)
sh /root/cdrom/preseed/lipnsa.hook.sh /root/isodevice
sh /root/cdrom/preseed/lipnsa.hook.sh /root/isodevice
debug
echo
"As far as I know, there are no logs of anything, which is run in casper. So I sleep here, allowing me to view potential errors ..."
debug
sleep
30
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment