postrm 637 Bytes
Newer Older
Jonathan Carter's avatar
Jonathan Carter committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Generate unique IDs for this machine:
dbus-uuidgen --ensure
systemd-machine-id-setup

# Ping must me set suid, which we lost with squashfs extraction
chmod +s /bin/ping

# Set root filesystem persmissions correctly
chmod 0755 /

# Add splash for grub, if you dont want it, add 'nosplash'
Jonathan Carter's avatar
Jonathan Carter committed
14
15
16
17
18
19
20
21
22
23
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/' /etc/default/grub
update-grub

case "$1" in
    remove)
        # Restore original Calamares icon
        dpkg-divert --quiet --rename --package aims-live \
                   --remove /usr/share/applications/calamares.desktop
    ;;
esac
Jonathan Carter's avatar
Jonathan Carter committed
24
25

exit 0